<div class="modal fade" id="addLeaseModal">

    <div class="modal-dialog modal-xl">

        <form method="POST" action="<?php echo e(route('leases.store')); ?>">

            <?php echo csrf_field(); ?>

            <div class="modal-content">

                <div class="modal-header">

                    <h5>
                        New Lease
                    </h5>

                    <button type="button" class="btn-close" data-bs-dismiss="modal">
                    </button>

                </div>

                <div class="modal-body">

                    <div class="row">

                        <div class="col-md-4 mb-3">

                            <label>
                                Lease Type
                            </label>

                            <select name="lease_type" id="lease_type" class="form-select" required>

                                <option value="">
                                    Select Lease Type
                                </option>

                                <option value="cash">
                                    CASH
                                </option>

                                <option value="bill">
                                    BILL
                                </option>

                            </select>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Device
                            </label>

                            <select name="device_id" class="form-select select2" required>

                                <option value="">
                                    Select Device
                                </option>

                                <?php $__currentLoopData = $devices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $device): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($device->id); ?>">
                                        <?php echo e($device->serial_number); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </select>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Sub T1 No
                            </label>

                            <input type="text" name="sub_t1_no" class="form-control" required>

                        </div>

                        

                        <div class="col-md-6 mb-3" id="cash_customer_wrapper">

                            <label>
                                Customer Name
                            </label>

                            <input type="text" name="customer_name" class="form-control">

                        </div>

                        

                        <div class="col-md-6 mb-3" id="bill_customer_wrapper" style="display:none;">

                            <label>
                                Customer
                            </label>

                            <select name="customer_id" class="form-select">

                                <option value="">
                                    Select Customer
                                </option>

                                <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($customer->id); ?>">
                                        <?php echo e($customer->name); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </select>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Truck Number
                            </label>

                            <input type="text" name="truck_no" class="form-control" required>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Trailer Number
                            </label>

                            <input type="text" name="trailer_no" class="form-control">

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Driver Name
                            </label>

                            <input type="text" name="driver_name" class="form-control" required>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Driver Phone
                            </label>

                            <input type="text" name="driver_phone" class="form-control" required>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Passport / Licence
                            </label>

                            <input type="text" name="passport_or_license" class="form-control" required>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Cargo Type
                            </label>

                            <select name="cargo_type" class="form-select" required>

                                <option value="">
                                    Select Cargo
                                </option>

                                <option value="CONTAINERIZED">
                                    CONTAINERIZED
                                </option>

                                <option value="IT">
                                    IT
                                </option>

                                <option value="DRY CARGO">
                                    DRY CARGO
                                </option>

                                <option value="FUEL TANKER">
                                    FUEL TANKER
                                </option>

                                <option value="BOX BODY">
                                    BOX BODY
                                </option>

                            </select>

                        </div>
                        <div class="col-md-4 mb-3">

                            <label>
                                Agent Name
                            </label>

                            <input type="text" name="agent_name" class="form-control" required>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Destination
                            </label>

                            <select name="destination_border_id" class="form-select" required>

                                <option value="">
                                    Select Border
                                </option>

                                <?php $__currentLoopData = $borderStations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $border): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($border->id); ?>">
                                        <?php echo e($border->name); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </select>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label>
                                Tag Point
                            </label>

                            <select name="tag_point_id" class="form-select" required>

                                <option value="">
                                    Select Tag Point
                                </option>

                                <?php $__currentLoopData = $tagPoints; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $point): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($point->id); ?>">
                                        <?php echo e($point->name); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </select>

                        </div>



                    </div>

                </div>

                <div class="modal-footer">

                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">

                        Close

                    </button>

                    <button type="submit" class="btn btn-primary">

                        Save Lease

                    </button>

                </div>

            </div>

        </form>

    </div>

</div>
<?php /**PATH D:\Projects\lms-ects\resources\views/leases/partials/add-lease-modal.blade.php ENDPATH**/ ?>