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


<section id="hero" class="shadow pb-5">
  <div class="container">

    <h1 class="inner-page-title">My Previous Orders</h1>

    <?php if($Myorders): ?>
      <?php $__currentLoopData = $Myorders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Myorder): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <div class="card border border-brandcolor mb-3 mt-4" style="width: 100%;">
        <div class="card-body">

          <h5 class="card-title font-weight-bold">Order No. <?php echo e($Myorder->id); ?></h5>
          <h6 class="card-subtitle mb-2 "><?php echo e($Myorder->status->title); ?></h6>
          
          <div class="row p-3">
            <div style="width:48%; float:left; border-right:1px solid #9f9b9b; padding-top:5px;">
              <h6 class="card-subtitle mb-2 text-muted font-weight-bold">Order Date:</h6>
              <h6 class="card-subtitle mb-2 text-muted"><?php echo e(date_format(date_create($Myorder->created_at),'d-m-Y')); ?></h6>
            </div>
            <div style="width:48%; float:left; padding-left:10px; padding-top:5px;">
              <h6 class="card-subtitle mb-2 text-muted font-weight-bold">Delivery Date:</h6>
              <h6 class="card-subtitle mb-2 text-muted">
                <?php if($Myorder->order_delivery->last()): ?>
                  <?php echo e(date_format(date_create($Myorder->order_delivery->last()->completingperiod),'d-m-Y')); ?>

                <?php else: ?>
                  <?php echo e("Not Completed"); ?>

                <?php endif; ?>
              </h6>
            </div>
          </div>

          <div class="d-flex">
            <a href="<?php echo e(route('productDetails',$Myorder->id)); ?>"><button type="submit" class="btn btn-brandcolor">View</button></a>
          </div>

        </div>
      </div> 
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
  
  </div>
</section>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.homeapp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\washclub\resources\views/Home/mypreviousorders.blade.php ENDPATH**/ ?>