

<!-- Modal start -->
<div class="modal fade" id="DeliveryModalGeneral" tabindex="-1" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalCenterTitle">Place Order</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form action="<?php echo e(route('DirectDelivery')); ?>" method="GET">
                    <?php echo csrf_field(); ?>
                    
                    <?php if(auth()->user()->role == "Call Center"): ?>
                      <!-- Field wrapper start -->
                      <div class="field-wrapper">
                        <select class="select-single js-states" title="Select Term" data-live-search="true" name="branch">
                        <option selected disabled>Select Outlet</option>
                        <?php $__currentLoopData = $all_branch; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $all_branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option><?php echo e($all_branch); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                        
                        <div class="field-placeholder">Outlet <span class="text-danger">*</span></div>
                    </div>
                    <!-- Field wrapper end -->
                    <?php endif; ?>

                <!-- Field wrapper start -->
                <div class="field-wrapper">
                   
                    <select class="select-single js-states" title="Select Term" data-live-search="true" name="type">
                    <option disabled selected>Select Category</option>
                    <option value="GENERAL DELIVERY">GENERAL ORDER</option>
                    <?php if($bar == 0): ?>
                         <?php $__currentLoopData = $agency; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <option value="<?php echo e($agency->agency_name); ?>"><?php echo e($agency->agency_name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                    </select>
                    <div class="field-placeholder">Order Type<span class="text-danger">*</span></div>
                </div>
                <!-- Field wrapper end -->

                
                <div class="field-wrapper">
                    <button type="submit" class="btn btn-primary rounded-pill">Proceed</button>
                </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
<!-- Modal end -->
<?php /**PATH /home2/morttacy/morttsonsposfiles/resources/views/modal/delivery-modal.blade.php ENDPATH**/ ?>