

<?php $__env->startSection('title'); ?>
 تسوية العجز والفائض 
<?php $__env->stopSection(); ?>

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

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

<?php $__env->startSection('header-content'); ?>
  تسوية العجز والفائض  
<?php $__env->stopSection(); ?>
<?php echo $__env->make('massages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php $__env->startSection('content-body'); ?>

    <!-- row -->
    <div class="row" style="width: 95%; margin:auto;">
        <div class="col-xl-12">
        <div class="card">
                    <div class="card-body pb-3">
                        <div class="row align-items-center">
                            <div class="col-6 mb-3">
                                <p class="mb-2"> اسم العامل</p>
                                <h2 class="mb-0"><?php echo e($reading->employee->name); ?></h2>
                            </div>
                            <div class="me-3 mb-3 col-2" style="text-align:center ;">
                            <p class="mb-2">التسوية </p>
                            <?php if($deficit_statues==1): ?>
                            <span class="badge badge-success light bold">تمت التسوية</span>
                            <?php else: ?>
                            <span class="badge badge-danger light bold">لم تتم التسوية</span>
                            <?php endif; ?>
                            <!-- <span class="badge badge-rounded badge-primary"></span> -->
                        </div>
                        <div class="me-3 mb-3 col-2" style="text-align:center ;">
                            <p class="mb-2">الحالة </p>
                            <?php if($type==-1): ?>
                            <span class="badge badge-danger light bold">عجز</span>
                            <?php else: ?>
                            <span class="badge badge-primary light bold">فائض</span>
                            <?php endif; ?>
                            <!-- <span class="badge badge-rounded badge-primary"></span> -->
                        </div>
                        </div>
                        
                    </div>
                    <div class="card-body pb-3 transaction-details d-flex flex-wrap justify-content-between align-items-center">
                        <div class="me-2 mb-3 col-3">
                            <p class="mb-2"> رقم الطرمبة</p>
                            <h4 class="mb-0"><?php echo e($reading->pump->id); ?></h4>
                        </div>
                        <div class="me-2 mb-3 col-3">
                            <p class="mb-2">الكمية</p>
                            <h4 class="mb-0"><?php echo e($quantity); ?></h4>
                        </div>
                        <div class="me-2 mb-3 col-2">
                            <p class="mb-2">النوع</p>
                            <?php if(isset($typePetrolDiesel)): ?>
                                <?php if($typePetrolDiesel == 0): ?>
                                  <h4 class="mb-0">بترول</h4>
                                <?php else: ?>
                                <h4 class="mb-0">ديزل</h4>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                        <div class="me-2 mb-3 col-2">
                            <p class="mb-2">سعر المادة</p>
                            <h4 class="mb-0"><?php if(isset($price)): ?>
                                <?php echo e($price); ?>

                            <?php endif; ?></h4>
                        </div>
                      
                        <form class="row needs-validation" style="width: 100% ; margin:10px auto;" action="<?php echo e(Route('store_deficit_surpluses')); ?>" method="POST" novalidate>
                            <div class="col-12">
                                <input class="form-control form-white" type="hidden" name="type" value="<?php echo e($type); ?>">
                                <input class="form-control form-white" type="hidden" name="price" value="<?php echo e($price); ?>">
                                <input class="form-control form-white" type="hidden" name="typePetrolDiesel" value="<?php echo e($typePetrolDiesel); ?>">
                                <input class="form-control form-white" type="hidden" name="quantity" value="<?php echo e($quantity); ?>">
                                <input class="form-control form-white" type="hidden" name="readingId" value="<?php echo e($reading->id); ?>">
                                <?php if($deficit_statues==0): ?> 
                                <label class="control-label form-label">ملاحظة </label>
                                <input class="form-control form-white" placeholder="ادخل ملاحظة " type="text" name="notice" required="">
                                <div class="fv-plugins-message-container invalid-feedback ">
                                    يرجى  ادخال  ملاحظة 
                                 </div>
                                <?php endif; ?>
                               
                            </div>
                            
                            
                            </div>
                            <?php if($deficit_statues==0): ?> 
                            <div class="modal-footer">
                                <button type="submit" class="btn btn-primary waves-effect waves-light save-category" data-bs-toggle="modal">تسوية</button>
                            </div>
                            <?php endif; ?>
                        </form>
                          
                        
                    </div>
                </div>

        </div>
    </div>
    


<?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>

<?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/deficit_surpluses/new_deficit_surplus.blade.php ENDPATH**/ ?>