<?php $__env->startSection('page_title','Order Detail'); ?>
<?php $__env->startSection('container'); ?>

<!-- catg header banner section -->
<section id="aa-catg-head-banner">
   <div class="aa-catg-head-banner-area">
     <div class="container">
      
     </div>
   </div>
  </section>
  <!-- / catg header banner section -->         

  <section id="cart-view">
   <div class="container">
     <div class="row">
      <div class="col-md-6">
        <div class="order_detail">
            <h3>Details Address</h3>
             <?php echo e($orders_details[0]->name); ?>(<?php echo e($orders_details[0]->mobile); ?>) <br/><?php echo e($orders_details[0]->address); ?><br/><?php echo e($orders_details[0]->city); ?></br><?php echo e($orders_details[0]->state); ?></br/><?php echo e($orders_details[0]->pincode); ?>

          </div> 
      </div>
      <div class="col-md-6">
          <div class="order_detail">
            <h3>Order Details</h3>
             Order Status: <?php echo e($orders_details[0]->orders_status); ?><br/>
             Payment Status: <?php echo e($orders_details[0]->payment_status); ?><br/>
             Payment Type: <?php echo e($orders_details[0]->payment_type); ?><br/>
             <?php
              if($orders_details[0]->payment_id!=''){
                  echo 'Payment ID: '.$orders_details[0]->payment_id;
              }
             ?>
          </div>
          <b>Track Details</b><br/>
          <?php echo e($orders_details[0]->track_details); ?> 
      </div>
     

       <div class="col-md-12">
         <div class="cart-view-area">
           <div class="cart-view-table">
             <form action="">
             
               <div class="table-responsive">
                  <table class="table">
                    <thead>
                      <tr>
                        <th>Product</th>
                        <th>Image</th>
                        <th>Size</th>
                        <th>Color</th>
                        <th>Price</th>
                        <th>Qty</th>
                        <th>Total</th>
                      </tr>
                    </thead>
                    <tbody>
                     <?php 
                     $totalAmt=0;
                     ?>
                     <?php $__currentLoopData = $orders_details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                     <?php 
                     $totalAmt=$totalAmt+($list->price*$list->qty);
                     ?>
                     <tr>
                        <td><?php echo e($list->pname); ?></td>
                        <td><img src='<?php echo e(asset('storage/media/'.$list->attr_image)); ?>'/></td>
                        <td><?php echo e($list->size); ?></td>
                        <td><?php echo e($list->color); ?></td>
                        <td><?php echo e($list->price); ?></td>
                        <td><?php echo e($list->qty); ?></td>
                        <td><?php echo e($list->price*$list->qty); ?></td>
                      </tr>
                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     <tr>
                        <td colspan="5">&nbsp;</td>
                        <td><b>Total</b></td>
                        <td><b><?php echo e($totalAmt); ?></b></td>
                      </tr>
                      <?php
                      if($orders_details[0]->coupon_value>0){
                        echo '<tr>
                          <td colspan="5">&nbsp;</td>
                          <td><b>Coupon <span class="coupon_apply_txt">('.$orders_details[0]->coupon_code.')</span></b></td>
                          <td>'.$orders_details[0]->coupon_value.'</td>
                        </tr>';
                        $totalAmt=$totalAmt-$orders_details[0]->coupon_value;
                        echo '<tr>
                          <td colspan="5">&nbsp;</td>
                          <td><b>Final Total</b></td>
                          <td>'.$totalAmt.'</td>
                        </tr>';
                      }
                      
                      
                      ?>
                    </tbody>
                  </table>
                </div>
             </form>
             <!-- Cart Total view -->
           
		   </div>
         </div>
       </div>
     </div>
   </div>
 </section> 
<?php $__env->stopSection(); ?>
<?php echo $__env->make('front/layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laravel\ecom\my_ecom\resources\views/front/order_detail.blade.php ENDPATH**/ ?>