 <!-- Modal Quantity To Clint -->
 <form class="validation" novalidate="" method="POST" action="<?php echo e(route('DistributionStore')); ?>">
     <?php echo csrf_field(); ?>
     <div class="modal fade modalFeather" id="newDistrubutionToclint" data-bs-backdrop="static" data-bs-keyboard="false"
         tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style="z-index: 11;">
         <div class="modal-dialog modal-lg modal-simple modal-add-new-address">
             <div class="modal-content">
                 <div class="modal-header">
                     <h4 class="modal-title"><strong>توزيع جديد للعملاء</strong></h4>
                     <i type="reset" data-bs-dismiss="modal" aria-label="Close" class="las las la-times text-danger scale5"></i>
                 </div>
                 <div class="modal-body">
                     <div id="addNewAddressForm" class="row g-3 fv-plugins-bootstrap5 fv-plugins-framework ">
                         <div class="row">
                            <div class="col-md-6 mb-2">
                                <label class="form-label titleInput" for="validationCustom05">التوريدة الموزع منها
                                    <span class="text-danger">*</span>
                                </label>
                                <select class="form-control form-white inputRead inputChecked" data-placeholder="Choose a color..."
                                    name="supplyId" required>
                                    <option disabled="disabled" selected value="">الرجاء اختيار احدى التوريدات
                                    </option>
                                    <?php $__currentLoopData = $supplies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supply): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($supply->quantity>$supply->distributionTotal): ?>
                                            <option value="<?php echo e($supply->id); ?>">
                                                <?php echo e($supply->notice); ?> متبقي <?php echo e($supply->quantity-$supply->distributionTotal); ?>

                                            </option>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <div class="invalid-feedback">
                                    يرجاء اختيار احد التوريدات
                                </div>
                            </div>
                             <div class="col-md-6 mb-2">
                                 <label class="form-label titleInput" for="validationCustom01">اسم العميل<span
                                         class="text-danger">*</span>
                                 </label>
                                 <select class="form-control form-white inputRead" data-placeholder="Choose a color..."
                                     name="clintName" required>
                                     <option disabled="disabled" selected value="">الرجاء اختيار احد العملاء
                                     </option>
                                     <?php $__currentLoopData = $niceNames; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $niceName): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                         <option value="<?php echo e($niceName); ?>"><?php echo e($niceName); ?></option>
                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                 </select>
                                 <div class="invalid-feedback">
                                     يرجاء ادخال اسم المورد
                                 </div>
                             </div>
                             <div class="col-md-6 mb-2">
                                 <label class="form-label titleInput" for="validationCustom06">الكمية
                                     <span class="text-danger">*</span>
                                 </label>
                                 <input name="quantity" type="number" class="form-control inputRead inputChecked"
                                     id="validationCustom06" placeholder="ادخل الكمية.." required="">
                                 <div class="invalid-feedback">
                                     يرجاء ادخل الكمية بشكل صحيح
                                 </div>
                                 <div class="errorMassege" style="color: red;font-size: 0.875em;margin-top: 0.25rem"></div>
                             </div>
                             <div class="col-md-6 mb-2">
                                 <label class="col-lg-12 col-form-label titleInput " for="">العمولة
                                     <span class="text-success">*</span>
                                 </label>
                                 <div class="col-lg-12">
                                     <input name="rate" value="0" type="number" class="form-control inputRead"
                                         placeholder="ادخل العمولة..">
                                     
                                     <?php $__errorArgs = ['rate'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                         <div class="text-danger px-2 showModalAdd ">
                                             <?php echo e($message); ?>

                                         </div>
                                     <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                 </div>
                             </div>
                             <div class="col-md-12 mb-2">
                                 <label class="col-lg-12 col-form-label titleInput" for="validationCustom02">ملاحظة
                                     لعملية التوزيع<span class="text-danger">*</span>
                                 </label>
                                 <div class="col-lg-12">
                                    <input name="notice" type="text" class="form-control form-control-sm inputRead"  placeholder="ادخل عدد ملاحظة " required="">
                                    <div class="invalid-feedback">
                                         الرجاء ادخال ملاحظة لعملية التوزيع
                                     </div>
                                 </div>

                             </div>
                         </div>

                     </div>
                     <div class="modal-footer">
                         <button type="button" class="btn btn-outline-primary  me-1" data-bs-toggle="modal"
                             data-bs-target="#addTank">
                             <i class="mdi mdi-plus-circle ms-2"></i>اضافة عميل جديد
                         </button>
                         <button type="button" class="btn btn-primary me-sm-3 me-1 showModal btnValidation"
                             data-title="هل انت متأكد من هذه التوزيعة ؟">حفظ</button>
                         <button type="reset" class="btn btn-label-secondary " data-bs-dismiss="modal"
                             aria-label="Close">الغاء</button>
                     </div>
                 </div>
             </div>
         </div>
     </div>


     <?php echo $__env->make('print_confirmation.print_confirmation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 </form>

 <!-- End Modal Quantity To Clint -->
<?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/supply/modals_clint/new.blade.php ENDPATH**/ ?>