  
  <div class="modal fade" id="editModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="modalEdit" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-simple modal-add-new-address">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title titleBox"><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">
            
            <form id="addNewAddressForm"  class="row g-3 fv-plugins-bootstrap5 fv-plugins-framework needs-validation"  novalidate="" method="POST" action="<?php echo e(route('update_quantity_to_tank')); ?>">
                <?php echo csrf_field(); ?>
                <div class="row">
                    <div class="col-xl-6">
                        <div class="mb-3 row">
                            <label class="col-lg-12 col-form-label" for="validationCustom01">اسم الموظف<span class="text-danger">*</span>
                            </label>
                            <div class="col-lg-12">
                                <select class="form-control  form-white" id="employ_name" data-placeholder="Choose a color..." name="employeeId" required>
                                    <option disabled="disabled" selected value="">الرجاء تحديد الموظف المستلم لكمية</option>
                                    <?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $employee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if(isset($employee->user->role)): ?>
                                    <?php if($employee->user->role==3): ?>
                                    <option value="<?php echo e($employee->user->id); ?>"><?php echo e($employee->user->name); ?></option>
                                    <?php endif; ?>
                                    <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <div class="invalid-feedback">
                                   يرجاء تحديد اسم الموظف المستلم
                                </div>
                                <?php $__errorArgs = ['employeeId'];
$__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 showModalEdit ">
                                    <?php echo e($message); ?>

                                    </div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <div class="mb-3 row">
                            <label class="col-lg-12 col-form-label" for="validationCustom05">الخزان
                                <span class="text-danger">*</span>
                            </label>
                            <div class="col-lg-12">
                                <select id="tank_id" class="form-control form-white typeTank inputCheckedEdit" data-placeholder="Choose a color..." name="tankId" required>
                                    <option value="-1" selected disabled>اختر احدى الخزانات</option>
                                    <?php $__currentLoopData = $tanks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tank): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($tank->is_active==1): ?>
                                    <option value="<?php echo e($tank->id); ?>"  data-type_tank="<?php echo e($tank->type); ?>">  الخزان رقم.<?php echo e($tank->id); ?>

                                        <?php if($tank->type==0): ?>
                                        ( بترول ) -
                                    <?php else: ?>
                                        ( ديزل ) -
                                    <?php endif; ?>
                                         المساحة الغارغة <?php echo e($tank->capacity - $tank->quantity); ?> لتر
                                    </option>
                                    <?php endif; ?>

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <div class="invalid-feedback">
                                    يرجاء تحديد احدى الخزانات
                                </div>
                                <?php $__errorArgs = ['tankId'];
$__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 showModalEdit ">
                                    <?php echo e($message); ?>

                                    </div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                             </div>
                        </div>
                    </div>

                    <div class="col-xl-6">
                        <div class="mb-3 row">
                            <label class="col-lg-12 col-form-label" for="validationCustom05">التوريدة الموزع منها
                                <span class="text-danger">*</span>
                            </label>
                            <select id="supplyId" class="form-control form-white suppliesSelectedList supplyCheckedEdit" data-placeholder="Choose a color..." name="supplyId" required>
                                <option disabled selected value="">الرجاء اختيار احدى التوريدات</option>
                                <?php $__currentLoopData = $supplies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supply): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php
                                     $summiton = 0;
                                        foreach ($storeQuantities as $storeQuanty) {
                                            if($storeQuanty->supply_id==$supply->id)
                                              {$summiton+=$storeQuanty->quantity;}
                                        }
                                        $empty = $supply->quantity - $summiton;
                                    ?>
                                    <option value="<?php echo e($supply->id); ?>" data-name="<?php echo e($supply->notice); ?>" hidden data-quantity="<?php echo e($empty); ?>"  class="supplies-account"><?php echo e($supply->notice); ?> الكمية <?php echo e($empty); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <div class="invalid-feedback">
                                يرجاء اختيار احد التوريدات
                            </div>
                            <?php $__errorArgs = ['supplyId'];
$__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 showModalEdit ">
                                    <?php echo e($message); ?>

                                    </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="mb-3 row">
                            <label class="col-lg-12 col-form-label" for="validationCustom06">الكمية
                                <span class="text-danger">*</span>
                            </label>
                            <div class="col-lg-12">
                                <input name="quantity" type="number" class="form-control inputCheckedEdit supplyCheckedEdit" id="quantity" placeholder="ادخل الكمية.." required="" required="">
                                <div class="invalid-feedback">
                                    يرجاء ادخل الكمية بشكل صحيح
                                </div>
                                <?php $__errorArgs = ['quantity'];
$__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 showModalEdit ">
                                    <?php echo e($message); ?>

                                    </div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                <div class="errorMassegeEdit" style="color: red;font-size: 0.875em;margin-top: 0.25rem"></div>
                            </div>
                        </div>
                        </div>
                        <div class="modal-footer">
                            <button type="submit" class="btn btn-primary me-sm-3 me-1 btnValidationEdit">تعديل</button>
                            <button type="reset" class="btn btn-label-secondary" data-bs-dismiss="modal" aria-label="Close">الغاء</button>
                        </div>
                    </div>

                      <input type="hidden" id="id" name="id">
            </form>
            </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/supply/modals_tank/update.blade.php ENDPATH**/ ?>