<?php
    // Variable for the form
    $form = 'conductorFormID';
    $button = [
        'save' => 'conductorSaveData',
        'close' => 'conductorCloseForm',
    ];

    // Get data
    $id = !empty($data) && !empty($data['id']) ? (int) $data['id'] : 0;
    $name = !empty($data) && !empty($data['name']) ? ucfirst($data['name']) : '';
    $destinationtypeID = !empty($data) && !empty($data['destinationtype_id']) ? (int) $data['destinationtype_id'] : '';

    // Form title
    $title = !empty($id) ? $name : 'Ajouter un prix conducteur';

    // Type
    $type = ['prix contucteur', 'prix extérieur'];

?>

<form id="<?php echo e($form); ?>">
    <?php echo csrf_field(); ?>
    <input type="hidden" name="rowID" value="<?php echo e($id); ?>">
    <div class="modal-header bg-primary">
        <h3 class="modal-title fw-light text-uppercase text-white fs-5"><?php echo e($title); ?></h3>
        <!--begin::Close-->
        <div class="btn btn-icon btn-sm  ms-2" data-bs-dismiss="modal" aria-label="Close">
            <i class="ki-duotone ki-cross fs-1 text-white"><span class="path1"></span><span class="path2"></span></i>
        </div>
        <!--end::Close-->
    </div>

    <div class="modal-body">
        <!--begin::Input-->
        <div class="fv-row mb-5 row">
            <div class="col-md-6">
                <!--begin::Label-->
                <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                    <span class="required">Type</span>
                    </span>
                </label>
                <!--end::Label-->
                <select class="form-select form-select-solid" id="destinationtype_id" data-control="select2"
                    data-placeholder="Choix..." data-dropdown-parent="#conductorModalID" name="destinationtype_id">
                    <option></option>
                    <?php $__empty_1 = true; $__currentLoopData = $type; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        
                        <option value="<?php echo e(mb_strtolower($item)); ?>">
                            <?php echo e(ucfirst($item)); ?>

                        </option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <?php endif; ?>
                </select>
            </div>
            <div class="col-md-6">
                <!--begin::Label-->
                <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                    <span class="required">Prix</span>
                    </span>
                </label>
                <!--end::Label-->
                <!--begin::Input-->
                <input type="number" class="form-control form-control-lg form-control-solid" name="price"
                    value="<?php echo e($name); ?>">
                <!--end::Input-->
            </div>
        </div>
        <!--end::Input-->



    </div>
    <div class="modal-footer justify-content-center">
        <a href="javascript:;" class="btn btn-danger" data-bs-dismiss="modal" aria-label="Close"
            id="<?php echo e($button['close']); ?>">Fermer</a>
        <button type="submit" class="btn btn-primary" id="<?php echo e($button['save']); ?>">Ajouter</button>
    </div>
</form>
<?php /**PATH C:\laragon\www\car-rend\resources\views/backoffice/settings/conductor/form.blade.php ENDPATH**/ ?>