Viewing file: 17762232359ec86752c91ddf6a48925f013394fb.php (10.23 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Completed Order <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> Order <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?>Completed List <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-lg-12">
<div class="card">
<?php if($errors->any()): ?>
<div class="alert alert-danger">
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<span class="each-error"><?php echo e($error); ?> </span><br/>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endif; ?>
<?php if(session()->has('message')): ?>
<div class="alert alert-success">
<?php echo e(session()->get('message')); ?>
</div>
<?php endif; ?>
<div class="card-header border-0">
<div class="d-flex align-items-center">
<h5 class="card-title mb-0 flex-grow-1">Completed Orders List</h5>
<!-- <div class="flex-shrink-0">
<button type="button" class="btn btn-success add-btn" data-bs-toggle="modal"
id="create-btn" data-bs-target="#addModal"><i
class="ri-add-line align-bottom me-1"></i> Create New
</button>
</div> -->
</div>
</div>
<div class="card-body border border-dashed border-end-0 border-start-0">
<form action="<?php echo e(route('delivered')); ?>" method="POST">
<?php echo csrf_field(); ?>
<div class="row g-3">
<div class="col-xxl-2 col-sm-3">
<div class="search-box">
<?php
$input_dt = (isset($search_input)) ? $search_input : "";
?>
<input type="text" id="search_input" name="search_input" value="<?php echo e($input_dt); ?>" class="form-control search"
placeholder="Search by order id">
<i class="ri-search-line search-icon"></i>
</div>
</div>
<!--end col-->
<div class="col-xxl-2 col-sm-3">
<div>
<?php
$dt=date('d M, Y', strtotime("-1 month")) ." to ".date('d M, Y', strtotime("+0 days"));
$date_dt = (isset($date_range)) ? $date_range :$dt;
?>
<input type="text" class="form-control" data-provider="flatpickr"
data-date-format="d M, Y" data-range-date="true"
id="demo-datepicker" data-deafult-date="<?php echo e($date_dt); ?>" name="date_range" placeholder="Select date">
</div>
</div>
<!--end col-->
<div class="col-xxl-2 col-sm-3" style="max-height:40px;">
<div>
<select class="js-example-basic-single form-control"
name="shop" id="idShop">
<option value="" disabled>Select Shop</option>
<option value="all" selected>All Shop</option>
<?php
$shop_dt = (isset($shop)) ? $shop : "all";
?>
<?php if(isset($shops)): ?>
<?php $__currentLoopData = $shops; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $shop): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($shop->id); ?>"><?php echo e($shop->shop_name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
</div>
</div>
<!--end col-->
<div class="col-xxl-1 col-sm-3">
<div>
<button type="submit" class="btn btn-primary w-100"> <i
class="ri-equalizer-fill me-1 align-bottom"></i>
Filters
</button>
</div>
</div>
<!--end col-->
</div>
<!--end row-->
</form>
</div>
<div class="card-body pt-0">
<div class="">
<table id="partnerTable" class="table dt-responsive align-middle table-hover table-bordered" style="width:100%">
<thead>
<tr>
<th>Order Id</th>
<th>Invoice No</th>
<th>Date</th>
<th>Receiver</th>
<th>Address</th>
<th>Shop</th>
<th>Address</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
?>
<?php if(isset($deliveries)): ?>
<?php $__currentLoopData = $deliveries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$customer= json_decode($data->customer,true);
$vendor= json_decode($data->vendor,true);
?>
<tr>
<td>
<a href="<?php echo e(route('order_details',['order_id'=>$data->sale_id])); ?>" class="fw-medium link-primary">
<!-- <button class="btn btn-sm btn-soft-success text-uppercase"> -->
<?php echo e($data->order_id); ?>
<!-- </button> -->
</a>
</td>
<td>#<?php echo e($data->invoice_no); ?> </td>
<td><?php echo e(date('d M, Y H:i', strtotime($data->created_at))); ?></td>
<td><?php echo e($customer['receiver_name']); ?></td>
<td><?php echo e($customer['address']); ?></td>
<td><?php echo e($vendor['shop_name']); ?></td>
<td><?php echo e($vendor['address']); ?></td>
<td>
<?php if($data->status==1): ?>
<span class="badge badge-soft-secondary text-uppercase">Requested</span>
<?php elseif($data->status==2): ?>
<span class="badge badge-soft-info text-uppercase">Picked up</span>
<?php else: ?>
<span class="badge badge-soft-success text-uppercase">Delivered</span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--end col-->
</div>
<!--end row-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$(document).ready(function() {
new DataTable('#partnerTable', {
"columns": [
{"name": "Order ID", "orderable": "true"},
{"name": "Invoice No", "orderable": true},
{"name": "Date", "orderable": "true"},
{"name": "Receiver", "orderable": false},
{"name": "Address", "orderable": false},
{"name": "Shop", "orderable": false},
{"name": "Address", "orderable": false},
{"name": "Status", "orderable": false},
],
order:[],
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
var shop = "<?php echo $shop_dt; ?>";
$('#idShop').val(shop);
$('#idShop').trigger('change.select2');
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/jiff_delivery/resources/views/pages/delivery/completed.blade.php ENDPATH**/ ?>
|