
<!--  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=""
                    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" onchange="functionSelectType()"
                                        id="type" required>
                                        <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 class="mb-3 row">
                                <label class="col-lg-3 col-form-label" id="text"
                                    for="validationCustom02">اسم المستلم<span class="text-danger">*</span>
                                </label>
                                <div class="col-lg-9">
                                    <input id="recipientName" name="recipientName" type="text"
                                        class="form-control form-control-sm" id="validationCustom02"
                                        placeholder="ادخل المستلم" required="">
                                    <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 " data-placeholder="Choose a color..."
                                     id="senderName" name="senderName"  required>

                                        <option disabled selected value="">الرجاء اختيار احد العملاء</option>
                                        <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($user->name); ?>" hidden class="petrolselect"><?php echo e($user->name); ?> الرصيد المتبقي <?php echo e($user->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 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="rate" name="rate" 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>
</div>
<!-- End Modal update Tank -->

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