<?php
echo message_box('success');
echo message_box('error');
$created = can_action('127', 'created');
$edited = can_action('127', 'edited');
?>
<div class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-700 dark:bg-slate-900">
	<?php if (!empty($created) || !empty($edited)) { ?>
		<form method="post" id="lead_statuss" action="<?= base_url() ?>admin/leads/update_lead_status"
			class="w-full space-y-0" data-parsley-validate="" novalidate="">

			<?= form_input_group('lead_status', lang('lead_status'), '', 'text', true, array('placeholder' => lang('lead_status')), '', '', 'horizontal'); ?>

			<?= form_select_group(
				'lead_type',
				lang('lead_type'),
				array(
					'' => lang('none'),
					'close' => lang('close'),
					'open' => lang('open')
				),
				'',
				false,
				array(),
				'',
				'',
				'horizontal'
			); ?>

			<?= form_input_group('order_no', lang('order_no'), '', 'text', true, array('placeholder' => lang('order_no')), '', '', 'horizontal'); ?>

			<div class="flex items-center justify-end gap-2 border-t border-slate-200 pt-4 dark:border-slate-700">
				<button type="button" class="inline-flex items-center rounded-lg border border-slate-200 bg-white px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-100 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-200 dark:hover:bg-slate-700" data-dismiss="modal">
					<?= lang('close') ?>
				</button>
				<button type="submit" class="inline-flex items-center rounded-lg bg-slate-900 px-4 py-2 text-sm font-semibold text-white hover:bg-slate-800 dark:bg-slate-100 dark:text-slate-900 dark:hover:bg-white">
					<?= lang('save') ?>
				</button>
			</div>
		</form>
	<?php } ?>
</div>
