<?php echo form_open(base_url('admin/items/cloned_transferitem/' . $item_info->transfer_itemList_id), array('class' => 'space-y-4', 'enctype' => 'multipart/form-data', 'data-parsley-validate' => '', 'role' => 'form')); ?>

    <?php
    $warehouse_options = array('' => lang('select') . ' ' . lang('warehouse'));
    if (!empty($all_warehouse)) {
        foreach ($all_warehouse as $v_warehouse) {
            $warehouse_options[$v_warehouse->warehouse_id] = $v_warehouse->warehouse_name;
        }
    }
    $warehouse_selected = !empty($item_info->warehouse_id) ? $item_info->warehouse_id : '';
    $clone_date = !empty($item_info->date_saved) ? date('Y-m-d', safe_strtotime($item_info->date_saved)) : date('Y-m-d');
    ?>

    <?= form_select_group('warehouse_id', lang('select') . ' ' . lang('warehouse'), $warehouse_options, $warehouse_selected, true, array('class' => 'select_box', 'data-live-search' => 'true')); ?>
    <?= form_datepicker('transfer_date', lang('transfer') . ' ' . lang('date'), $clone_date, true, array('data-auto-close' => 'true')); ?>

    <div class="flex items-center justify-end gap-2 pt-2">
        <button type="button" class="inline-flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-semibold text-foreground hover:bg-muted" data-dismiss="modal">
            <i data-lucide="x" class="h-4 w-4"></i>
            <?= lang('close') ?>
        </button>
        <button type="submit" class="inline-flex items-center gap-2 rounded-lg bg-indigo-600 px-3 py-2 text-xs font-semibold text-white shadow-sm hover:bg-indigo-500">
            <i data-lucide="copy" class="h-4 w-4"></i>
            <?= lang('clone') ?>
        </button>
    </div>
<?php echo form_close(); ?>
