
<!--  Modal update Tank -->
<div class="modal fade" id="updateModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
    aria-labelledby="updateModal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="header"><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="updateForm" method="POST"  action="<?php echo e(route('updateBuying')); ?>"
                    class="row g-3 fv-plugins-bootstrap5 fv-plugins-framework needs-validation" novalidate="">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="id" id="id_update">
                    <input type="hidden" name="accounterId" id="accounterId">
                    <div class="row">
                        <div class="col-xl-12">
                            <div class="mb-3 row">
                                <label class="col-lg-3 col-form-label" for="typepetrol">النوع
                                    <span class="text-danger">*</span>
                                </label>
                                <div class="col-lg-9">
                                    <select name="type"
                                        class="form-control form-white form-control-sm typePetrodiesel inputRead"
                                        id="type1" required onchange="functionSelectType()">
                                        <option value="-1" selected="selected" disabled="disabled">الرجاء
                                            اختيار احدى الأنواع</option>
                                        <option value=0 rel="petrolselect">بترول</option>
                                        <option value=1 rel="desilselect">ديزل</option>

                                    </select>
                                    <div class="invalid-feedback">
                                        الرجاء اختيار احدى الخيارات الموجودة
                                    </div>

                                </div>
                            </div>


                        </div>
                        <div class="col-xl-12">
                            <div class="mb-3 row">
                                <label class="col-lg-3 col-form-label" for="validationCustom01">اسم العميل<span
                                        class="text-danger">*</span>
                                </label>
                                <div class="col-lg-9">
                                    <select class="form-control form-white dieselSelectList inputRead" data-placeholder="Choose a color..."
                                    id="clintName" name="name" required>

                                        <option disabled selected value="">الرجاء اختيار احد العملاء</option>
                                        <?php $__currentLoopData = $clients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $client): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        
                                            <option value="<?php echo e($client->name); ?>" hidden class="petrolselect account_clint p-2"><?php echo e($client->name); ?> الرصيد المتبقي <?php echo e($client->balance); ?> لتر</option>
                                        
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                    <div class="invalid-feedback">
                                        الرجاء اختيار اسم العميل
                                    </div>
                                </div>
                            </div>
                            <div class="mb-3 row">
                                <label class="col-lg-3 col-form-label" for="validationCustom06">الكمية
                                    <span class="text-danger">*</span>
                                </label>
                                <div class="col-lg-9">
                                    <input id="quantity" name="quantity" type="number" class="form-control form-control-sm"
                                        id="validationCustom06" placeholder="ادخل الكمية" required="">
                                    <div class="invalid-feedback">
                                        الرجاء ادخل الكمية بشكل صحيح
                                    </div>
                                </div>
                            </div>

                        </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary me-sm-3 me-1" id="btncomfirm">تعديل</button>
                        <button type="reset" class="btn btn-label-secondary btnClear" data-bs-dismiss="modal" aria-label="Close">الغاء</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- End Modal update Tank -->

<?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/buying/modals/update.blade.php ENDPATH**/ ?>