<?= message_box('success'); ?>
<?= message_box('error'); ?>

<div class="space-y-6">
	<form data-parsley-validate novalidate action="<?= base_url('admin/quotations/add_form') ?>" method="post" id="addQuotationForm" class="space-y-6">
		<div class="rounded-xl border border-border bg-card p-6">
			<div class="mb-4 flex items-center gap-2 border-b border-border pb-3 text-sm font-semibold text-foreground">
				<i data-lucide="edit-3" class="h-5 w-5"></i>
				<h2 class="text-base font-semibold"><?= lang('form_title') ?></h2>
			</div>
			<?= form_input_group('quotationforms_title', lang('form_title'), '', 'text', true, array('placeholder' => lang('form_title'))); ?>
		</div>

		<input type="hidden" name="quotationforms_code" id="quotationforms_code">
		<?php
		$builder_id = 'quotation-form-builder-new';
		$hidden_input_id = 'quotationforms_code';
		$builder_fields = array();
		$this->load->view('admin/quotations/_quotation_form_builder', array(
			'builder_id' => $builder_id,
			'hidden_input_id' => $hidden_input_id,
			'builder_fields' => $builder_fields,
		));
		?>

		<div class="flex items-center justify-end">
			<button class="inline-flex items-center gap-2 rounded-lg bg-indigo-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500" type="submit">
				<i data-lucide="save" class="h-4 w-4"></i>
				<?= lang('save') ?>
			</button>
		</div>
	</form>
</div>
