


<?php $__env->startSection('title'); ?>
    تقييـــــد أكثر من عملية | صرف من الحساب
<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('header-content'); ?>
تقييـــــد أكثر من عملية| صرف من الحساب
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-body'); ?>
    <!--**********************************
                Content body start
            ***********************************-->
    <?php echo $__env->make('massages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <!-- row -->
    <div class="row" style="width: 95%; margin:auto;">
        <div class="col-xl-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title">سحب جديد</h4>
                </div>
                <div class="card-body pb-3 tran">
                    <div class="form-validation">
                        <form class="validation need-validation" novalidate method="POST" action="<?php echo e(route('storeMultiDailySpent')); ?>">
                            <?php echo csrf_field(); ?>
                            <div class="row">
                                <div class="col-xl-12">
                                    <div class="mb-3 row">
                                        <label class="col-lg-12 col-form-label  titleInput" for="validationCustom01">
                                            حدد الطرمبة المراد التوزيع منها  <span class="text-danger">*</span>
                                        </label>
                                        <div class="col-lg-12">
                                           <select  class="form-control form-white inputRead pump"   data-placeholder="Choose a color..."
                                                    name="pumpId"  id="pumpList"required>
                                                    <option selected disabled value="">اختار رقم الطرمبة</option>
                                                    <?php $__currentLoopData = $pumps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pump): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <?php if($pump->is_active == 1 && $pump->status == 0 && $pump->is_set_reading == 1 && $pump->is_set_employee == 1): ?>
                                                            <option   value="<?php echo e($pump->id); ?>"  data-type_pump="<?php echo e($pump->tank->type); ?>" class="pump-info">
                                                                الطرمبة رقم.<?php echo e($pump->id); ?>

                                                                <?php if($pump->tank->type == 0): ?>
                                                                    ( بترول )
                                                                <?php else: ?>
                                                                    ( ديزل )
                                                                <?php endif; ?>
                                                            </option>
                                                        <?php elseif($pump->status == 1): ?>
                                                            <option   data-type_pump="<?php echo e($pump->tank->type); ?>" value="<?php echo e($pump->id); ?>" disabled style="color:red;" class="pupm">

                                                                الطرمبة رقم.<?php echo e($pump->id); ?> عليها فائض
                                                            </option>
                                                        <?php elseif($pump->status == -1): ?>
                                                            <option class="pump-info"   data-type_pump="<?php echo e($pump->tank->type); ?>" value="<?php echo e($pump->id); ?>" disabled style="color:red;">
                                                                الطرمبة رقم.<?php echo e($pump->id); ?> عليها عجز
                                                            </option>
                                                         <?php elseif($pump->is_set_reading == 0): ?>
                                                            <option   class="pump-info" data-type_pump="<?php echo e($pump->tank->type); ?>" value="<?php echo e($pump->id); ?>" disabled style="color:red;">
                                                                الطرمبة رقم.<?php echo e($pump->id); ?>  لم يتم ادخال قراءة ابتدائيه لها
                                                            </option>
                                                        <?php elseif($pump->is_set_employee == 0): ?>
                                                            <option  class="pump-info" data-type_pump="<?php echo e($pump->tank->type); ?>"  value="<?php echo e($pump->id); ?>" disabled style="color:red;">
                                                                الطرمبة رقم.<?php echo e($pump->id); ?>  لم يتم تحديد عامل لها
                                                            </option>

                                                        <?php endif; ?>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                                <div class="invalid-feedback">
                                                    الرجاء اختيار احدى الخيارات الموجودة
                                                </div>
                                        </div>
                                    </div>
                                </div>

                            </div>
                            <table class="tableSpicial">
                                <thead>
                                    <th>العميل</th>
                                    <th>الكمية</th>
                                    <th class="w-50">ملاحظة</th>
                                </thead>
                                <tbody id="inputs">
                                    <tr class="tr_data inputs-border-radius-0">
                                        <td>
                                            <select class="form-control form-white  inputRead clints"
                                            data-placeholder="Choose a color..."
                                            name="clintName[]"
                                            required
                                            id="clint_list">
                                            <option disabled selected value="">الرجاء اختيار احد العملاء
                                            </option>
                                            <?php $__currentLoopData = $clients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $client): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                <?php if($client->balance>1): ?>
                                                <option hidden value="<?php echo e($client->name); ?>"
                                                    class="accounts-client p-2">
                                                    <?php echo e($client->name); ?>

                                                    متبقي له <?php echo e($client->balance); ?> لتر </option>
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                        </td>
                                        <td>
                                            <input name="quantity[]" type="number" class="form-control inputRead quantity" onblur="sumQuantity(0)"
                                            id="validationCustom06" placeholder="ادخل الكمية.." required="">
                                        </td>
                                        <td>
                                            <input name="notice[]" type="text" class="form-control inputRead notice"
                                                id="validationCustom06" placeholder="ادخل الملاحظة.." >
                                        </td>
                                        <td style="cursor: pointer; padding: 5px; text-align: center" class="delete" onclick="deleteTage(0)">
                                            <span class="text-danger fs-4 fw-bold form-control">X</span>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <div class="col-xl-12" style="direction: rtl;">
                                <span id="add"  class="btn btn-success">+</span>
                            </div>
                            <div class="col-xl-12" style="direction: ltr;">
                                <button type="button" class="btn btn-primary me-sm-3 me-1 showModal"
                                    data-title="هل تريد تقييد هذه المسحوبات ؟">تقييد </button>
                            </div>

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

        </div>
    </div>



    <!--**********************************
                Content body end
            ***********************************-->
            <script src="<?php echo e('/js/selected/daily-spent.js'); ?>"></script>
            <script src="<?php echo e('/js/add-input/daily-spent.js'); ?>"></script>
            <script src="<?php echo e(asset('/js/quickly/print_confirmation_daily_spent.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>

    <script src="<?php echo e(asset('/vendor/datatables/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/js/plugins-init/datatables.init.js')); ?>"></script>
    <script src="<?php echo e(asset('/js/validation.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('coupons.inputs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/quickly/daily-spent.blade.php ENDPATH**/ ?>