

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

<!-- Content wrapper scroll start -->
<div class="content-wrapper-scroll">

<!-- Content wrapper start -->
<div class="content-wrapper">

 <!-- Breadcrumb container start -->
 <div class="breadcrumb-container">

<!-- Row start -->
<div class="row gutters">
    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item"><a href="/">Dashboards</a></li>
              <li class="breadcrumb-item active" aria-current="page">Pending Orders</li>
            </ol>
        </nav>
    </div>

    
    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">

    <form action="<?php echo e(route('OnlineReport')); ?>" method="get">
    <!-- Field wrapper start -->
    <div class="field-wrapper">
        <select class="select-single js-states" name="state" title="Select Product Category" data-live-search="true">
            <option value="1">Approved</option>
            <option value="2">Pending</option>
            <option value="0">Cancelled</option>
        </select>
        <div class="field-placeholder">Selct Status</div>
    </div>
    <!-- Field wrapper end -->
        <!-- Top Actions - DateRange and Buttons -->
        <div class="d-flex justify-content-end">
            <!-- Field wrapper start -->
            <div class="field-wrapper m-0">
                <div class="input-group">
                    <input type="text" name="date" class="form-control custom-daterange2">
                    <span class="input-group-text">
                        <i class="icon-calendar1"></i>
                    </span>
                </div>
                
            </div>
            <!-- Field wrapper end -->
            <button class="btn btn-info"><i class="icon-download1"></i>Report</button>
        </div>
    </div>
    </form>
</div>
<!-- Row end -->

    <!-- Row start -->
    <div class="row gutters">
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
            
            <div class="card">
                
                <div class="card-body">
                <div style="margin-bottom:12px">
                    <a href="<?php echo e(route('rejectedOrders')); ?>" class="btn btn-outline-primary rounded-pill"> <i class="icon-cancel"></i> Cancelled Orders</a>  <a href="<?php echo e(route('ApprovedOrders')); ?>" class="btn btn-outline-info rounded-pill"> <i class="icon-check"></i>Approved Orders</a>
                </div>
                    <div class="table-responsive">
                        <table id="copy-print-csv" class="table v-middle">
                            <thead>
                                <tr>
                                  <th>Order ID</th>
                                  <th>Customer Contact</th>
                                  <th>created at</th>
                                  <th>Status</th>
                                  <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $pending_orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pending): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                  <td>
                                      <div class="media-box">
                                          <div class="media-box-body">
                                              <a href="#" class="text-truncate"><?php echo e($pending->invoice_number); ?></a>
                                          </div>
                                      </div>
                                  </td>
                                  <td><?php echo e($pending->customer_phone); ?></td>
                                  <td>
                                  <?php 
                                        $date = \Carbon\Carbon::parse($pending->created_at, 'UTC');
                                        echo $date->isoFormat('MMMM Do YYYY, h:mma');
                                        ?>
                                  </td>
                                  <td><span class="text-info"><i class="icon-slash"></i> Pending</span></td>
                                  <td>
                                    <form id="preview<?php echo e($pending->invoice_number); ?>" action="<?php echo e(route('PreviewOrder')); ?>" method="get">
                                        <input type="text" hidden name="invoice_number" value="<?php echo e($pending->invoice_number); ?>">
                                    </form>
                                        <a href="javascript:void(0)" onclick="document.getElementById('preview<?php echo e($pending->invoice_number); ?>').submit();" class="btn btn-outline-info btn-sm rounded-pill">
                                            <i class="icon-eye1"></i>Preview
                                        </a>
                                        
                                        <a href="#" class="btn btn-outline-primary btn-sm rounded-pill" data-toggle="tooltip" data-placement="top" title="" data-original-title="Delete">
                                            <i class="icon-x-circle text-danger"></i>Cancel
                                        </a>
                                  </td>
                                </tr>
                              
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                    </table>
                    </div>
</div>
                </div>
            </div>

        </div>
    </div>
    <!-- Row end -->

</div>
<!-- Content wrapper end -->


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/morttsons/public_html/morttsonsposfiles/resources/views/online-template/pending-orders.blade.php ENDPATH**/ ?>