

<?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 " novalidate=""  method="POST" action="<?php echo e(route('storeExchange')); ?>">
                                    <?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 inputChecked" data-placeholder="Choose a color..." name="name" required="">
                                                            <option disabled="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 value="<?php echo e($client->name); ?>"><?php echo e($client->name); ?>  الرصيد المتبقي

                                                                <strong><?php echo e($client->balance); ?></strong>

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

                                            </div>

                                            <div class="col-xl-6">

                                                <div class="mb-3 row">
                                                    <label class="col-lg-12 col-form-label titleInput" for="validationCustom06">كمية الديزل
                                                        <span class="text-danger">*</span>
                                                    </label>
                                                    <div class="col-lg-12">
                                                        <input name="dieselQuantity" 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>
                                            </div>

                                            <div class="col-xl-6">

                                                <div class="mb-3 row">
                                                    <label class="col-lg-12 col-form-label  titleInput" for="validationCustom06">كمية البترول
                                                        <span class="text-danger">*</span>
                                                    </label>
                                                    <div class="col-lg-12">
                                                        <input name="petrolQuantity" 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>
                                            </div>
                                            <input name="type" type="hidden" value = "1" class="form-control" id="validationCustom06" placeholder="ادخل كمية.." required="">

                                            <div class="col-xl-12" style="direction: ltr;">
                                                <button type="button" class="btn btn-primary me-sm-3 me-1 showModal btnValidation"
                                                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
        ***********************************-->




<?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>
<script src="<?php echo e(asset('/js/validation/validationQuantity.js')); ?>"></script>

<?php $__env->stopSection(); ?>

<?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/exchange/topetrol.blade.php ENDPATH**/ ?>