You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
3.1 KiB
PHTML
77 lines
3.1 KiB
PHTML
3 months ago
|
<div class="tab-pane {{$tab == 'details' ? 'active' : ''}}" id="details" role="tabpanel"
|
||
|
aria-labelledby="details-tab">
|
||
|
|
||
|
<div class="row justify-content-center mb-3">
|
||
|
<div class="col-9">
|
||
|
<div class="d-flex flex-row gap-2">
|
||
|
<div class="d-inline-flex">
|
||
|
<h4 class="my-auto">Active orders</h4>
|
||
|
</div>
|
||
|
<div class="mx-auto"></div>
|
||
3 months ago
|
<a href="{{route('orders.create')}}"
|
||
|
class="btn btn-sm btn-primary" title="Create new order..."
|
||
3 months ago
|
<x-bi-plus-circle-fill/>
|
||
|
Create entry
|
||
3 months ago
|
</a>
|
||
3 months ago
|
<div class="vr"></div>
|
||
|
|
||
|
<div class="d-inline-flex gap-2">
|
||
|
<input type="text" class="form-control form-control-sm" placeholder="Search..."
|
||
|
name="" id="searchText">
|
||
|
<button class="btn btn-sm btn-outline-primary" id="searchButton">
|
||
|
<x-bi-search/>
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row justify-content-center">
|
||
|
<div class="col-9">
|
||
|
<table class="table table-striped table-sm table-hover">
|
||
|
<thead>
|
||
|
<tr class="border-bottom border-black">
|
||
|
<th scope="col">Internal PO</th>
|
||
|
<th scope="col">Customer PO</th>
|
||
|
<th scope="col">Order Date</th>
|
||
|
<th scope="col">Due Date</th>
|
||
|
<th scope="col">Status</th>
|
||
|
<th scope="col">Rush</th>
|
||
|
<th scope="col">View</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach($active_orders as $order)
|
||
3 months ago
|
<tr class="@if($today > $order->due_date) table-danger @elseif($order->rush) table-warning @endif">
|
||
3 months ago
|
<td class="fw-bold"><code>{{$order->internal_po}}</code></td>
|
||
|
<td class=""><code>{{$order->customer_po}}</code></td>
|
||
|
<td class="text-nowrap">{{$order->order_date}}</td>
|
||
|
<td class="text-nowrap">{{$order->due_date}}</td>
|
||
3 months ago
|
<td class="w-25">{{$order->status->value}}</td>
|
||
3 months ago
|
<td>
|
||
|
@if($order->rush)
|
||
|
<x-bi-check-lg class="text-danger"></x-bi-check-lg>
|
||
|
@endif
|
||
|
</td>
|
||
|
<td class="align-top">
|
||
|
<a class="btn btn-sm btn-outline-secondary"
|
||
|
href="">
|
||
|
<x-bi-arrow-right/>
|
||
|
</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col"></div>
|
||
|
<div class="col-4">
|
||
|
{{$active_orders->links()}}
|
||
|
</div>
|
||
|
<div class="col"></div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|