

<?php $__env->startSection('title'); ?>
    قسيمة رقم  <?php echo e($coupon->id); ?>


<?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-body pb-3">
								<div class="row align-items-center">
									<div class="col-9 mb-3">
										<p class="mb-2">رقم القسيمة</p>
										<h2 class="mb-0">00000<?php echo e($coupon->id); ?>#</h2>
									</div>
									<div class="me-3 mb-3 col-2" style="text-align:center ;">
									<p class="mb-2">حالة القسيمة</p>
									<?php if($coupon->status == 'غير مطبوعة' || $coupon->status == 'موقفة'): ?>
									<span class="badge badge-danger light"><?php echo e($coupon->status); ?></span>
									<?php else: ?>
									<span class="badge badge-primary light"><?php echo e($coupon->status); ?></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="user-bx-2 me-3 mb-3 col-5">
									<div>
										<span>اسم العميل</span>
										<h3><?php echo e($coupon->clint->name); ?></h3>
									</div>
								</div>
								<div class="user-bx-2 me-3 mb-3 col-5">
									<div>
										<?php if(isset($beneficiaryName)): ?>	
										<span>اسم المستفيد</span>
										<h3><?php echo e($beneficiaryName); ?></h3>
										<?php endif; ?>
									</div>
								</div>
								<div class="me-3 mb-3 col-3">
									<p class="mb-2">نوع المادة</p>
									<h4 class="mb-0"><?php echo e($coupon->type); ?></h4>
								</div>
								<div class="me-3 mb-3 col-3">
									<p class="mb-2">الكمية</p>
									<h4 class="mb-0"><?php echo e($coupon->quantity . ' لتر'); ?></h4>
								</div>
								<div class="me-3 mb-3 col-3">
									<?php if(isset($beneficiaryName)): ?>
									<p class="mb-2">تاريخ الاستلام</p>
									<h4 class="mb-0"><?php echo e($coupon->updated_at); ?></h4>
									<?php endif; ?>
								</div>
								<?php if($coupon->status == 'مطبوعة'): ?>
								<form class="row needs-validation" style="width: 100% ; margin:10px auto;" action="<?php echo e(Route('spentCoupon')); ?>" method="POST" novalidate>
									<div class="col-12">
										<label class="control-label form-label"> اسم المستفيد</label>
										<input class="form-control form-white" placeholder="ادخل اسم المستفيد" type="text" name="beneficiaryName" required="">
										<input class="form-control form-white" placeholder="ادخل اسم المستفيد" type="hidden" name="couponId" value="<?php echo e($coupon->id); ?>">
                                        <div class="fv-plugins-message-container invalid-feedback ">
                                            يرجى  ادخال اسم المستفيد 
                                         </div>
									</div>
									
									
									</div>
									<div class="modal-footer">
										<button type="submit" class="btn btn-primary waves-effect waves-light save-category" data-bs-toggle="modal">صرف</button>
									</div>
								</form>
									<?php endif; ?>
								
							</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>

<?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/coupons/show.blade.php ENDPATH**/ ?>