Current File : //home/tradevaly/www/storage/framework/views/560fe0ac110de3324b4e8cd76263df2089c7d976.php
<?php $__env->startPush('title','All Orders'); ?>
<?php $__env->startPush('style'); ?>
    <link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="row">
            <div class="col-md-8">
                <div class="d-flex justify-content-between ">
                    <div class="text-left">
                        <h3>Order Number</h3>
                        <p><?php echo e($order->order_id); ?></p>
                        <p><strong>Date : </strong><?php echo e($order->created_at->format('d/m/Y')); ?></p>
                    </div>
                    <div class="text-end">
                        <button class="btn btn-success" onclick="window.print()"><i class="fas fa-print"></i> Print</button>
                        <p class="mt-4">Payment Method :<?php echo e($order->payment_type); ?></p>
                        <p>Payment Status:<?php echo e($order->payment_status); ?></p>
                    </div>
                </div>
                <table class="table">
                      <thead>
                        <tr>
                          <th scope="col">#</th>
                          <th scope="col">Product image</th>
                          <th scope="col">Product Title</th>
                          <th scope="col">Product Price</th>
                          <th scope="col">Quantity</th>
                          <th scope="col">Total</th>
                          <th scope="col" style="text-align: center;">Status</th>
                        </tr>
                      </thead>
                      <tbody>
                          <?php
                          $total = 0;
                          ?>
                          <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                          <th scope="row"><?php echo e($loop->iteration); ?></th>
                          <td><img src="<?php echo e(asset('storage/images/admin/product/' . (isset($item->product->image) ?$item->product->image:""))); ?>" height="50" alt="<?php echo e($item->product_title); ?>"></td>
                          <td><?php echo e(isset($item->product->title)?$item->product->title:$item->product_title); ?></td>
                          <td><?php echo e($item->product_price); ?></td>
                          <td><?php echo e($item->quantity); ?></td>
                          <td><?php echo e($item->quantity * $item->product_price); ?></td>
                          <td>
                               <?php if($item->status == "new"): ?>
                            <button type="button" class="btn btn-primary" style="width: 100px;text-align: center;"><?php echo e($item->status); ?></button>
                            <?php elseif($item->status == "pending"): ?>
                            <button type="button" class="btn btn-warning" style="width: 100px;text-align: center;"><?php echo e($item->status); ?></button>
                            <?php elseif($item->status == "cancel"): ?>
                            <button type="button" class="btn btn-danger" style="width: 100px;text-align: center;"><?php echo e($item->status); ?></button>
                            <?php elseif($item->status == "delevered"): ?>
                            <button type="button" class="btn btn-success" style="width: 100px;text-align: center;"><?php echo e($item->status); ?></button>
                            <?php endif; ?>
                          </td>

                          <?php
                          $total= $total + ($item->quantity * $item->product_price);
                          ?>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td colspan="6" class="text-end"><strong>Total : </strong></td>
                            <td><?php echo e($total); ?></td>
                        </tr>
                        <tr>
                            <td colspan="6" class="text-end"><strong>Discount : </strong></td>
                            <td><?php echo e(isset($vendor_order->discount)?$vendor_order->discount:00); ?></td>
                        </tr>
                        <tr>
                            <td colspan="6" class="text-end"><strong>SubTotal : </strong></td>
                            <td><?php echo e($total-$vendor_order->discount); ?></td>
                        </tr>
                      </tbody>
                    </table>
            </div>
            <div class="col-md-4">
                <h2>Customer Details</h2>
                <ul class="list-group list-group-flush">
                  <li class="list-group-item"><strong>Name:</strong> <?php echo e($order->name); ?></li>
                  <li class="list-group-item"><strong>Email:</strong> <?php echo e($order->email); ?></li>
                  <li class="list-group-item"><strong>Phone:</strong> <?php echo e($order->phone); ?></li>
                  <li class="list-group-item"><strong>Address:</strong> <?php echo e($order->address_1); ?></li>
                  <li class="list-group-item"><strong>Company:</strong> <?php echo e($order->user->company->name); ?></li>
                  
                </ul>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/order/view.blade.php ENDPATH**/ ?>