<?php
$amount_value = !empty($quotations_info->quotations_amount) ? $quotations_info->quotations_amount : '';
$notes_value = !empty($quotations_info->notes) ? $quotations_info->notes : '';
?>

<div class="panel panel-custom">
	<div class="modal-body wrap-modal wrap">
		<?php echo form_open(
			base_url('admin/quotations/set_price_quotations/' . $quotations_id),
			array('data-parsley-validate' => 'true', 'novalidate' => 'novalidate', 'role' => 'form')
		); ?>

		<div class="grid gap-6">
			<div class="bg-slate-50 p-4 rounded-xl border border-slate-200 dark:bg-slate-800 dark:border-slate-700">
				<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
					<div class="md:col-span-2">
						<?= form_input_group(
							'quotations_amount',
							lang('amount'),
							$amount_value,
							'number',
							true,
							array('min' => '0', 'step' => '0.01', 'placeholder' => lang('amount'))
						); ?>
					</div>
					<div class="md:col-span-2">
						<?= form_textarea_group('notes', lang('notes'), $notes_value, 5, true); ?>
					</div>

					<div class="md:col-span-2">
						<?= form_checkbox('send_email', lang('send_email'), true, false, array('value' => 'on')); ?>
					</div>
				</div>

				<div class="modal-footer flex items-center justify-end gap-2 mt-6 border-t border-border/60 pt-4">
					<button type="button" class="btn btn-default btn-sm mb-1 h-9" data-dismiss="modal"><?= lang('close') ?></button>
					<?= btn_update('updates', 'sm') ?>
				</div>
			</div>
		</div>

		<?php echo form_close(); ?>
	</div>
</div>
