<?php $__env->startSection('preload-section'); ?>

  <link rel="stylesheet" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css">

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

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

<!-- BEGIN row -->
      <div class="row">
        <!-- BEGIN col-6 -->
        <div class="col-xl-6">
          <!-- BEGIN card -->
          <div class="card text-white-transparent-7 mb-3 overflow-hidden">
            <!-- BEGIN card-img-overlay -->
            <div class="card-img-overlay d-block d-lg-none bg-blue rounded"></div>
            <!-- END card-img-overlay -->
            
            <!-- BEGIN card-img-overlay -->
            <div class="card-img-overlay d-none d-md-block bg-blue rounded" style="background-image: url(<?php echo e(url('assets/theme_assets/img/bg/wave-bg.png')); ?>); background-position: right bottom; background-repeat: no-repeat; background-size: 100%;"></div>
            <!-- END card-img-overlay -->
            
            <!-- BEGIN card-img-overlay -->
            <div class="card-img-overlay d-none d-md-block bottom-0 top-auto">
              <div class="row">
                <div class="col-md-8 col-xl-6"></div>
                <div class="col-md-4 col-xl-6 mb-n2">
                  <img src="<?php echo e(url('assets/theme_assets/img/page/dashboard.svg')); ?>" alt="" class="d-block ml-n3 mb-5" style="max-height: 310px" />
                </div>
              </div>
            </div>
            <!-- END card-img-overlay -->
            
            <!-- BEGIN card-body -->
            <div class="card-body position-relative">
              <!-- BEGIN row -->
              <div class="row">
                <!-- BEGIN col-8 -->
                <div class="col-md-8">
                  <!-- stat-top -->
                  <div class="d-flex">
                    <div class="mr-auto">
                      <h5 class="text-white-transparent-8 mb-3"><?php echo e(__('keywords.This Week Earning')); ?></h5>
                      <h3 class="text-white mt-n1 mb-1"><?php echo e(round($this_week,2)); ?></h3>
                      <p class="mb-1 text-white-transparent-6 text-truncate">
                       <?php if($difference >= 0): ?> <i class="fa fa-caret-up"></i><?php else: ?><i class="fa fa-caret-down"></i><?php endif; ?> <b><?php echo e(round($difference,2)); ?> %</b>  <?php if($difference >= 0): ?> <?php echo e(__('keywords.increase')); ?><?php else: ?> <?php echo e(__('keywords.decrease')); ?> <?php endif; ?> <?php echo e(__('keywords.compare to last week')); ?>

                      </p>
                    </div>
                  </div>
                  
                  <hr class="hr-transparent bg-white-transparent-2 mt-3 mb-3" />
                  
                  <!-- stat-bottom -->
                  <div class="row">
                    <div class="col-6 col-lg-5">
                      <div class="mt-1">
                        <i class="fa fa-fw fa-shopping-bag fs-28px text-black-transparent-5"></i>
                      </div>
                      <div class="mt-1">
                        <div><?php echo e(__('keywords.Store Earnings')); ?></div>
                        <div class="font-weight-600 text-white"><?php echo e(round($store_earnings,2)); ?></div>
                      </div>
                    </div>
                    <div class="col-6 col-lg-5">
                      <div class="mt-1">
                        <i class="fa fa-fw fa-retweet fs-28px text-black-transparent-5"></i>
                      </div>
                      <div class="mt-1">
                        <div><?php echo e(__('keywords.Admin Earnings')); ?></div>
                        <div class="font-weight-600 text-white"><?php echo e(round($admin_earnings,2)); ?></div>
                      </div>
                    </div>
                  </div>
                  
                  <hr class="hr-transparent bg-white-transparent-2 mt-3 mb-3" />
                  
                  <div class="mt-3 mb-2">
                    <a href="<?php echo e(route('finance')); ?>" class="btn btn-yellow btn-rounded btn-sm pl-5 pr-5 pt-2 pb-2 fs-14px font-weight-600"><i class="fa fa-wallet mr-2 ml-n2"></i><?php echo e(__('keywords.Go To Store Earnings')); ?></a>
                  </div>
                  <p class="fs-12px">
                    <?php echo e(__('keywords.It Takes You To The Store Earnings Section')); ?>.
                  </p>
                </div>
                <!-- END col-8 -->
                
                <!-- BEGIN col-4 -->
                <div class="col-md-4 d-none d-md-block" style="min-height: 380px;"></div>
                <!-- END col-4 -->
              </div>
              <!-- END row -->
            </div>
            <!-- END card-body -->
          </div>
          <!-- END card -->
        </div>
        <!-- END col-6 -->
        
        <!-- BEGIN col-6 -->
        <div class="col-xl-6">
          <!-- BEGIN row -->
          <div class="row">
            <!-- BEGIN col-6 -->
            <div class="col-sm-6">
              <!-- BEGIN card -->
              <div class="card mb-3 overflow-hidden fs-13px border-0 bg-gradient-custom-orange" style="min-height: 202px;">
                <!-- BEGIN card-img-overlay -->
                <div class="card-img-overlay mb-n4 mr-n4 d-flex" style="bottom: 0; top: auto;">
                  <img src="assets/img/icon/order.svg" alt="" class="ml-auto d-block mb-n3" style="max-height: 105px" />
                </div>
                <!-- END card-img-overlay -->
                
                <!-- BEGIN card-body -->
                <div class="card-body position-relative">
                  <h5 class="text-white-transparent-8 mb-3 fs-16px"><?php echo e(__('keywords.New Orders')); ?></h5>
                  <h3 class="text-white mt-n1"><?php echo e($this_week_ord); ?></h3>
                  <div class="progress bg-black-transparent-5 mb-2" style="height: 6px">
                       <?php if($diff_ord >= 0): ?>
                   <div class="progrss-bar progress-bar-striped bg-white" style="width:<?php echo round($diff_ord,2)?>%" ></div>
                    <?php else: ?>
                     <div class="progrss-bar progress-bar-striped bg-red" style="width:<?php echo round($diff_ord,2)?>%"></div>
                     <?php endif; ?>
                  </div>
                  <div><div class="text-white-transparent-8 mb-4">  <?php if($diff_ord >= 0): ?> <i class="fa fa-caret-up"></i><?php else: ?><i class="fa fa-caret-down"></i><?php endif; ?><?php echo e(round($diff_ord,2)); ?> %  <?php if($diff_ord >= 0): ?> <?php echo e(__('keywords.increase')); ?><?php else: ?> <?php echo e(__('keywords.decrease')); ?> <?php endif; ?><br /><?php echo e(__('keywords.compare to last week')); ?></div>
                      </div>
                </div>
                <!-- BEGIN card-body -->
              </div>
              <!-- END card -->
              
              <!-- BEGIN card -->
              <div class="card mb-3 overflow-hidden fs-13px border-0 bg-gradient-custom-teal" style="min-height: 202px;">
                <!-- BEGIN card-img-overlay -->
                <div class="card-img-overlay mb-n4 mr-n4 d-flex" style="bottom: 0; top: auto;">
                  <img src="assets/img/icon/visitor.svg" alt="" class="ml-auto d-block mb-n3" style="max-height: 105px" />
                </div>
                <!-- END card-img-overlay -->
                
                <!-- BEGIN card-body -->
                <div class="card-body position-relative">
                  <h5 class="text-white-transparent-8 mb-3 fs-16px"><?php echo e(__('keywords.Cancelled Orders')); ?></h5>
                  <h3 class="text-white mt-n1"><?php echo e($this_week_can); ?></h3>
                  <div class="progress bg-black-transparent-5 mb-2" style="height: 6px">
                    <?php if($diff_can >= 0): ?>
                   <div class="progrss-bar progress-bar-striped bg-white" style="width:<?php echo round($diff_can,2)?>%" ></div>
                    <?php else: ?>
                     <div class="progrss-bar progress-bar-striped bg-red" style="width:<?php echo round($diff_can,2)?>%"></div>
                     <?php endif; ?>
                  </div>
                  <div><div class="text-white-transparent-8 mb-4">  <?php if($diff_can >= 0): ?> <i class="fa fa-caret-up"></i><?php else: ?><i class="fa fa-caret-down"></i><?php endif; ?><?php echo e(round($diff_can,2)); ?> %  <?php if($diff_can >= 0): ?> <?php echo e(__('keywords.increase')); ?><?php else: ?> <?php echo e(__('keywords.decrease')); ?> <?php endif; ?><br /><?php echo e(__('keywords.compare to last week')); ?></div></div>
                </div>
                <!-- END card-body -->
              </div>
              <!-- END card -->
            </div>
            <!-- END col-6 -->
            
            <!-- BEGIN col-6 -->
            <div class="col-sm-6">
              <!-- BEGIN card -->
              <div class="card mb-3 overflow-hidden fs-13px border-0 bg-gradient-custom-pink" style="min-height: 202px;">
                <!-- BEGIN card-img-overlay -->
                <div class="card-img-overlay mb-n4 mr-n4 d-flex" style="bottom: 0; top: auto;">
                  <img src="assets/img/icon/email.svg" alt="" class="ml-auto d-block mb-n3" style="max-height: 105px" />
                </div>
                <!-- END card-img-overlay -->
                
                <!-- BEGIN card-body -->
                <div class="card-body position-relative">
                  <h5 class="text-white-transparent-8 mb-3 fs-16px"><?php echo e(__('keywords.Pending Orders')); ?></h5>
                  <h3 class="text-white mt-n1"><?php echo e($this_week_pen); ?></h3>
                  <div class="progress bg-black-transparent-5 mb-2" style="height: 6px">
                    <?php if($diff_pen >= 0): ?>
                   <div class="progrss-bar progress-bar-striped bg-white" style="width:<?php echo round($diff_pen,2)?>%" ></div>
                    <?php else: ?>
                     <div class="progrss-bar progress-bar-striped bg-red" style="width:<?php echo round($diff_pen,2)?>%"></div>
                     <?php endif; ?>
                  </div>
                
                  <div><div class="text-white-transparent-8 mb-4">  <?php if($diff_pen >= 0): ?> <i class="fa fa-caret-up"></i><?php else: ?><i class="fa fa-caret-down"></i><?php endif; ?><?php echo e(round($diff_pen, 2)); ?> %  <?php if($diff_pen >= 0): ?> <?php echo e(__('keywords.increase')); ?><?php else: ?> <?php echo e(__('keywords.decrease')); ?> <?php endif; ?><br /><?php echo e(__('keywords.compare to last week')); ?></div></div>
                </div>
                <!-- END card-body -->
              </div>
              <!-- END card -->
              
              <!-- BEGIN card -->
              <div class="card mb-3 overflow-hidden fs-13px border-0 bg-gradient-custom-indigo" style="min-height: 202px;">
                <!-- BEGIN card-img-overlay -->
                <div class="card-img-overlay mb-n4 mr-n4 d-flex" style="bottom: 0; top: auto;">
                  <img src="assets/img/icon/browser.svg" alt="" class="ml-auto d-block mb-n3" style="max-height: 105px" />
                </div>
                <!-- end card-img-overlay -->
                
                <!-- BEGIN card-body -->
                <div class="card-body position-relative">
                  <h5 class="text-white-transparent-8 mb-3 fs-16px"><?php echo e(__('keywords.This Week')); ?> <?php echo e(__('keywords.App Users')); ?></h5>
                  <h3 class="text-white mt-n1"><?php echo e($this_week_usr); ?></h3>
                  <div class="progress bg-black-transparent-5 mb-2" style="height: 6px">
                    <?php if($diff_usr >= 0): ?>
                   <div class="progrss-bar progress-bar-striped bg-white" style="width:<?php echo round($diff_usr,2)?>%" ></div>
                    <?php else: ?>
                     <div class="progrss-bar progress-bar-striped bg-red" style="width:<?php echo round($diff_usr,2)?>%"></div>
                     <?php endif; ?>
                  </div>
                  <div><div class="text-white-transparent-8 mb-4">  <?php if($diff_usr >= 0): ?> <i class="fa fa-caret-up"></i><?php else: ?><i class="fa fa-caret-down"></i><?php endif; ?><?php echo e(round($diff_usr,2)); ?> %  <?php if($diff_usr >= 0): ?> <?php echo e(__('keywords.increase')); ?><?php else: ?> <?php echo e(__('keywords.decrease')); ?> <?php endif; ?><br /><?php echo e(__('keywords.compare to last week')); ?></div></div>
                </div>
                <!-- END card-body -->
              </div>
              <!-- END card -->
            </div>
            <!-- BEGIN col-6 -->
          </div>
          <!-- END row -->
        </div>
        <!-- END col-6 -->


         
      </div>
      <!-- END row -->
      	<!-- BEGIN row -->
			<div class="row">
				<!-- BEGIN col-6 -->
				<div class="col-xl-6">
					<!-- BEGIN card -->
					<div class="card mb-3">
						<!-- BEGIN card-body -->
						<div class="card-body">
							<div class="d-flex align-items-center mb-4">
								<div class="flex-grow-1">
									<h5 class="mb-1"><?php echo e(__('keywords.Bestseller')); ?></h5>
									<div class="fs-13px"><?php echo e(__('keywords.Top product sales this week')); ?></div>
								</div>
							
							</div>
							<?php if(count($topselling)>0): ?>
                               <?php $i=1; ?>
							<?php $__currentLoopData = $topselling; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $topsellings): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<?php
							$topselling1 = DB::table('store_orders')
							->join ('orders', 'store_orders.order_cart_id', '=', 'orders.cart_id')
                          ->select(DB::raw('count(store_orders.varient_id) as count'),DB::raw('SUM(store_orders.qty) as totalqty'),DB::raw('SUM(store_orders.price) as revenue'))
                          ->where('store_orders.varient_id',$topsellings->varient_id)
                           ->whereBetween('orders.delivery_date', [$to, $next_date])
                          ->first(); ?>
							<!-- product-1 -->
							<div class="d-flex align-items-center mb-3">
								<div class="d-flex align-items-center justify-content-center mr-3 width-50 height-50">
									<img src="<?php echo e($url_aws.$topsellings->varient_image); ?>" alt="" class="mw-100 mh-100" />
								</div>
								<div class="flex-grow-1">
									<div>
										<div class="text-dark font-weight-600"><?php echo e($topsellings->product_name); ?></div>
										<div class="fs-13px"><?php echo e($topselling1->revenue); ?></div>
									</div>
								</div>
								<div class="pl-3 text-center">
									<div class="text-dark font-weight-600"><?php echo e($topsellings->count); ?></div>
									<div class="fs-13px"><?php echo e(__('keywords.sales')); ?></div>
								</div>
							</div>
						<?php $i++; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
           <?php else: ?>
              
            <tr>
              <td><?php echo e(__('keywords.No data found')); ?></td>
            </tr>
           <?php endif; ?>
						
						</div>
						<!-- END card-body -->
					</div>
					<!-- END card -->
				</div>
				<!-- END col-6 -->
				
				<!-- BEGIN col-6 -->
				<div class="col-xl-6">
					<!-- BEGIN card -->
					<div class="card">
						<!-- BEGIN card-body -->
						<div class="card-body">
							<div class="d-flex align-items-center mb-2">
								<div class="flex-grow-1">
									<h5 class="mb-1"><?php echo e(__('keywords.Orders')); ?></h5>
									<div class="fs-13px"><?php echo e(__('keywords.Latest order history')); ?></div>
								</div>
							
							</div>
							
							<!-- BEGIN table-responsive -->
							<div class="table-responsive mb-n2">
								<table class="table table-borderless mb-0">
									<thead>
										<tr class="text-dark">
											<th class="pl-0">#</th>
											<th><?php echo e(__('keywords.Cart_id')); ?></th>
											<th>User Details</th>
											<th class="text-center"><?php echo e(__('keywords.Status')); ?></th>
											<th class="text-right pr-0">Amount</th>
									     	<th class="text-right pr-0">Details</th>
										</tr>
									</thead>
									<tbody>
									     <?php if(count($ongoin)>0): ?>
                                           <?php $i=1; ?>
									    <?php $__currentLoopData = $ongoin; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ongoing): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<tr>
											<td class="pl-0"><?php echo e($i); ?></td>
											<td>
												<div class="d-flex align-items-center">
												
													<div class="ml-3 flex-grow-1">
														<div class="font-weight-600 text-dark"><?php echo e($ongoing->cart_id); ?></div>
														<div class="fs-13px"><?php echo e($ongoing->delivery_date); ?></div>
													</div>
													
												</div>
											</td>
											<td>
											    <div class="ml-3 flex-grow-1">
														<div class="font-weight-600 text-dark"><?php echo e($ongoing->name); ?></div>
														<div class="fs-13px"><?php echo e($ongoing->user_phone); ?></div>
													</div>
											</td>
											<td class="text-center"><?php if($ongoing->order_status=="Pending"): ?><span class="label bg-warning-transparent-2 text-warning" style="min-width: 60px;padding: 5px;border-radius: 11px;"><?php endif; ?> 
											<?php if($ongoing->order_status=="Confirmed"): ?><span class="label bg-success-transparent-2 text-success" style="min-width: 60px;padding: 5px;border-radius: 11px;"><?php endif; ?>
											<?php if($ongoing->order_status=="Completed"): ?><span class="label bg-success-transparent-2 text-success" style="min-width: 60px;padding: 5px;border-radius: 11px;"><?php endif; ?>
											<?php if($ongoing->order_status=="Cancelled"): ?><span class="label text-dark-transparent-5" style="min-width: 60px;padding: 5px;border-radius: 11px;"><?php endif; ?>
											<?php if($ongoing->order_status=="Out_For_Delivery"): ?><span class="label bg-success-transparent-2 text-success" style="min-width: 60px;    padding: 5px;border-radius: 11px;"><?php endif; ?>
											<?php echo e($ongoing->order_status); ?></span></td>
											<td class="text-right pr-0">	<?php echo e($ongoing->total_price); ?></td>
											  <td class="text-right pr-0"><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal1<?php echo e($ongoing->cart_id); ?>"><?php echo e(__('keywords.Details')); ?></button></td>
										</tr>
									     <?php $i++; ?>
                                                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                          <?php else: ?>
                                            <tr>
                                              <td colspan="6"><?php echo e(__('keywords.No data found')); ?></td>
                                            </tr>
                                          <?php endif; ?>
									</tbody>
								</table>
							</div>
							<!-- END table-responsive -->
						</div>
						<!-- END card-body -->
					</div>
					<!-- END card -->
				</div>
				<!-- END col-6 -->
			</div>
			<!-- END row -->
   <!--/////////Order details model//////////-->
<?php $__currentLoopData = $ongoin; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ords): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
 <div id="printThis">
<div class="modal fade" id="exampleModal1<?php echo e($ords->cart_id); ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="container">
     
    	<div class="modal-dialog" role="document">
    		<div class="modal-content">
    			<div class="modal-header">
    				<h5 class="modal-title" id="exampleModalLabel"><?php echo e(__('keywords.Order Details')); ?></h5>
    					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
    						<span aria-hidden="true">&times;</span>
    					</button>
    			</div>
        <div class="material-datatables">
              <form role="form" method="post" action="" >
            <table id="datatables" class="table table-striped table-no-bordered table-hover" cellspacing="0" width="100%" style="width:100%" data-background-color="purple">

                
                <tbody>
                    <tr>
                        <td colspan="5">
                            <table class="table">
                                <tr>
                                    <td valign="top" style="width:50%">
                                    <strong> <?php echo e(__('keywords.Order_Id')); ?> : </strong> <?php echo e($ords->cart_id); ?>

                                    <br />
                                      <strong><?php echo e(__('keywords.Customer_name')); ?> : </strong><?php echo e($ords->receiver_name); ?><br/>
                                        <strong><?php echo e(__('keywords.Contact')); ?> : </strong><?php echo e($ords->receiver_phone); ?>, <?php if($ords->user_phone != $ords->receiver_phone): ?><?php echo e($ords->receiver_phone); ?><?php endif; ?> <br/> 
                                    <strong>  <?php echo e(__('keywords.Delivery_Date')); ?> : </strong><?php echo e($ords->delivery_date); ?>

                                    <br />
                                    <strong>  <?php echo e(__('keywords.Time_Slot')); ?> : </strong><?php echo e($ords->time_slot); ?>

                                    <br />
                                    </td>
                                    <td  style="width:50%" align="right">
                                        <strong> <?php echo e(__('keywords.Delivery Address')); ?> </strong><br />
                                      
                                        <b><?php echo e($ords->type); ?> :</b> <?php echo e($ords->house_no); ?>,<?php echo e($ords->society); ?>,<br><?php if($ords->landmark !=NULL): ?> <?php echo e($ords->landmark); ?>,<br><?php endif; ?> <?php echo e($ords->city); ?>,<?php echo e($ords->state); ?>,<br>
                                          <?php echo e($ords->pincode); ?>

                                     </td>
                                    
                                </tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <th><?php echo e(__('keywords.Product_Name')); ?></th>
                        <th><?php echo e(__('keywords.Qty')); ?></th>
                        <th><?php echo e(__('keywords.Tax')); ?></th>
                        <th><?php echo e(__('keywords.Price')); ?></th>
                        <th><?php echo e(__('keywords.Total_Price')); ?></th>
                    </tr>
                    <?php if(count($details)>0): ?>
                            <?php $i=1; ?>
                                      
                          <tr>             
                        <?php $__currentLoopData = $details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $detailss): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <?php if($detailss->cart_id==$ords->cart_id): ?>
                         <td><p><img style="width:25px;height:25px; border-radius:50%" src="<?php echo e(url($detailss->varient_image)); ?>" alt="">  <?php echo e($detailss->product_name); ?>(<?php echo e($detailss->quantity); ?><?php echo e($detailss->unit); ?>)</p>
                            </td>
                            <td><?php echo e($detailss->qty); ?></td>
                             <td> <?php if($detailss->tx_per == 0 || $detailss->tx_per == NULL): ?>0 <?php else: ?> <?php echo e($detailss->tx_per); ?><?php endif; ?> % <?php if($detailss->tx_per != 0 && $detailss->tx_name != NULL): ?>(<?php echo e($detailss->tx_name); ?>)<?php endif; ?></td>
                             <td>
                            <p><span style="color:grey"><?php if($detailss->price_without_tax != NULL): ?><?php echo e($detailss->price_without_tax); ?> <?php else: ?> <?php echo e($detailss->price); ?> <?php endif; ?></span></p>
                           </td>
                            <td> 
                            <p><span style="color:grey"><?php echo e($detailss->price); ?></span></p>
                           </td>
    		          	  <?php endif; ?>
                         </tr>
                            <?php $i++; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                          <?php else: ?>
                            <tr>
                              <td colspan="5"><?php echo e(__('keywords.No data found')); ?></td>
                            </tr>
                                  <?php endif; ?>
                   
                   
                    <tr>
                        <td colspan="4" class="text-right"><strong class="pull-right"><?php echo e(__('keywords.Products_Price')); ?> : </strong></td>
                         <td  class="text-right" colspan="1">
                            <strong><?php echo e($ords->price_without_delivery); ?></strong>
                        </td>
                    </tr><tr>
                        <td colspan="4"  class="text-right"><strong class="pull-right"><?php echo e(__('keywords.Delivery_Charge')); ?> : </strong></td>
                         <td  class="text-right"  colspan="1">
                            <strong >+<?php echo e($ords->delivery_charge); ?></strong>
                        </td>
                    </tr><?php if($ords->paid_by_wallet > 0): ?>
                    <tr>    
                        <td colspan="4"  class="text-right"><strong class="pull-right"><?php echo e(__('keywords.Paid By Wallet')); ?> : </strong></td>
                         <td  class="text-right" colspan="1">
                            <strong>-<?php echo e($ords->paid_by_wallet); ?></strong>
                        </td>
                    </tr><?php endif; ?>
                    <?php if($ords->coupon_discount > 0): ?>
                    <tr>    
                        <td colspan="4" class="text-right"><strong class="pull-right"><?php echo e(__('keywords.Coupon Discount')); ?> : </strong></td>
                         <td  class="text-right" colspan="1">
                            <strong class="">-<?php echo e($ords->coupon_discount); ?></strong>
                        </td>
                    </tr>
                    <?php endif; ?>
                    <tr>
                        <td colspan="4" class="text-right"><strong class="pull-right"><?php echo e(__('keywords.Net_Total(Payable)')); ?>:</strong></td>
                        <td  class="text-right" colspan="1"><?php echo e($ords->rem_price); ?></td>
                    </tr>
                </tbody>
            </table>
            </form>
        </div>
         <div class="modal-footer">
       <button class="btn btn-danger" data-dismiss="modal" aria-hidden="true"><?php echo e(__('keywords.Close')); ?></button>
      </div>
    </div>
    
    <!-- end content-->
</div></div>
                            <!--  end card  -->
	
		</div>
	</div>
</div>

                                
         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>                       

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

<?php $__env->startSection('postload-section'); ?>

<script>
     $('#datatableDefault').DataTable({
        dom: "<'row mb-3'<'col-sm-4'l><'col-sm-8 text-right'<'d-flex justify-content-end'fB>>>t<'d-flex align-items-center'<'mr-auto'i><'mb-0'p>>",
        responsive: true,
        lengthMenu: false,
        autoWidth:true,
        select: true,
        scrollX: true,
        processing:true,
        ordering:true,
        paging:false,
        buttons: [
          { extend: 'print', className: 'btn btn-default fa-print' },
          { extend: 'csv', className: 'btn btn-default' }
        ]
    });
</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/source/resources/views/admin/home.blade.php ENDPATH**/ ?>