

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

<div class="w-full px-6 py-6 mx-auto mb-12">      

        <!-- card 2 -->

        <div class="w-full max-w-full px-3 mt-0 lg:flex-none">
            <div class="border-black/12.5 shadow-xl dark:bg-slate-850 dark:shadow-dark-xl relative flex min-w-0 flex-col break-words rounded-2xl border-0 border-solid bg-white bg-clip-border">
              <div class="p-4 pb-0 rounded-t-4">
                <h6 class="mb-0 dark:text-white">My Order Details</h6>
              </div>
              <div class="p-4">
                 <p class="mt-5 text-sm">These are the details of order <b><?php echo e($order->ref_id); ?></b></p> 
                 <hr class="h-px mt-0 bg-transparent bg-gradient-to-r from-transparent via-black/40 to-transparent dark:bg-gradient-to-r dark:from-transparent dark:via-white dark:to-transparent" />

                <p class="mt-3 text-sm">State Of Delivery: &nbsp; <b><?php echo e($order->state); ?></b></p>
                <p class="mt-3 text-sm">Address Of Delivery: &nbsp; <b><?php echo e($order->address); ?></b></p>
                <p class="mt-3 text-sm">Order Status: &nbsp; 
                <b> 
                    <?php if($order->status == 1): ?>
                    <span style="color:green">Approved</span>
                    <?php elseif($order->status == 3): ?>
                    <span style="color:red">Declined</span>
                    <?php elseif($order->status == 2): ?>
                    <span style="color:orange">Pending...</span>
                    <?php endif; ?>
                </b></p>

                <p class="mt-12 text-md"><b>Product Paid For</b></p>
                 <hr class="h-px mt-0 bg-transparent bg-gradient-to-r from-transparent via-black/40 to-transparent dark:bg-gradient-to-r dark:from-transparent dark:via-white dark:to-transparent" />

                 <?php $__currentLoopData = $details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <p class="mt-3 text-sm">Product Name: &nbsp; <b><?php echo e($detail->product_name); ?></b></p>
                <p class="mt-3 text-sm">Product Quantity: &nbsp; <b><?php echo e($detail->quantity); ?></b></p>
                <p class="mt-3 text-sm">Product Price: &nbsp; <b><?php echo e($detail->price); ?></b></p>
                 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                 <p class="mt-12 text-md">Order Total: &nbsp;<b>&#8358;<?php echo e(number_format($order->price)); ?></b></p>
              </div>
            </div>
          </div>

  </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.user', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\jango\resources\views/order_details.blade.php ENDPATH**/ ?>