<?php
    // Variable for the form
    $form = 'brandFormID';
    $button = [
        'save' => 'brandSaveData',
        'close' => 'brandCloseForm',
    ];

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

    // Form title
    $title = !empty($id) ? $name : 'Ajouter une marque';

?>

<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">
            <!--begin::Label-->
            <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                <span class="required">Marque</span>
                </span>
            </label>
            <!--end::Label-->
            <!--begin::Input-->
            <input type="text" class="form-control form-control-lg form-control-solid" name="name"
                value="<?php echo e($name); ?>">
            <!--end::Input-->
        </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/brand/form.blade.php ENDPATH**/ ?>