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.
72 lines
3.2 KiB
PHTML
72 lines
3.2 KiB
PHTML
@extends('layouts.app')
|
|
|
|
@section('header')
|
|
<div class="container-fluid bg-light pt-3">
|
|
|
|
<!-- Customer company name row -->
|
|
<div class="row justify-content-center pb-2">
|
|
<div class="col-3"></div>
|
|
<div class="col">
|
|
{{-- <h2>Overview</h2>--}}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Tabs row -->
|
|
<div class="row justify-content-center mb-3">
|
|
<div class="col-3 border-bottom"></div>
|
|
<div class="col-6 p-0">
|
|
|
|
<ul class="nav nav-fill nav-tabs" id="home-tabs" role="tablist">
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link link-dark {{$tab == 'details' ? 'active' : ''}}" id="details-tab"
|
|
href="{{route('orders.index', ['tab' => 'details'])}}" type="button" role="tab"
|
|
aria-controls="details" aria-selected="{{$tab == 'details' ? 'true' : 'false'}}">
|
|
<x-bi-list-ul/>
|
|
Order Details
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link link-dark {{$tab == 'timeline' ? 'active' : ''}}" id="timeline-tab"
|
|
href="{{route('orders.index', ['tab' => 'timeline'])}}" type="button" role="tab"
|
|
aria-controls="timeline" aria-selected="{{$tab == 'timeline' ? 'true' : 'false'}}">
|
|
<x-bi-calendar-range/>
|
|
Timeline
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="col border-bottom"></div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row justify-content-center my-3">
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane {{$tab == 'active_orders' ? 'active' : ''}}" id="active_orders" role="tabpanel"
|
|
aria-labelledby="active-orders-tab">
|
|
<livewire:orders-table order-type="active" :show-customer-column='true' :title="'Active Orders'"/>
|
|
</div>
|
|
|
|
<div class="tab-pane {{$tab == 'finished_orders' ? 'active' : ''}}" id="finished-orders" role="tabpanel"
|
|
aria-labelledby="finished-orders-tab">
|
|
<livewire:orders-table order-type="finished" :show-customer-column='true' title="Finished Orders"/>
|
|
</div>
|
|
|
|
<div class="tab-pane {{$tab == 'all' ? 'active' : ''}}" id="all-orders" role="tabpanel"
|
|
aria-labelledby="all-orders-tab">
|
|
<livewire:orders-table order-type="all" :show-customer-column='true' title="All Orders"/>
|
|
</div>
|
|
|
|
<div class="tab-pane {{$tab == 'invoice' ? 'active' : ''}}" id="invoice-orders" role="tabpanel"
|
|
aria-labelledby="invoice-orders-tab">
|
|
<livewire:orders-table order-type="invoiced" :show-customer-column='true' title="Invoiced Orders"/>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|