ultimatepos/Modules/Portal/Resources/views/customer/shipments/index.blade.php

25 lines
1.3 KiB
PHP

@extends('portal::layouts.customer')
@section('title', __('portal::lang.shipment_tracking'))
@section('content')
<section class="content-header"><h1>@lang('portal::lang.shipment_tracking')</h1></section>
<section class="content">
<div class="box box-primary"><div class="table-responsive">
<table class="table table-bordered table-striped">
<thead><tr><th>@lang('portal::lang.ref_no')</th><th>@lang('portal::lang.status')</th><th>@lang('tms::lang.driver')</th><th></th></tr></thead>
<tbody>
@forelse($shipments as $shipment)
<tr>
<td>{{ $shipment->ref_no }}</td>
<td>{{ $statuses[$shipment->status] ?? $shipment->status }}</td>
<td>{{ $shipment->driver->name ?? '-' }}</td>
<td><a href="{{ action([\Modules\Portal\Http\Controllers\Customer\ShipmentController::class, 'show'], [$shipment->id]) }}" class="btn btn-xs btn-info">@lang('portal::lang.view_details')</a></td>
</tr>
@empty
<tr><td colspan="4" class="text-center text-muted">@lang('portal::lang.no_records')</td></tr>
@endforelse
</tbody>
</table>
</div>{{ $shipments->links() }}</div>
</section>
@endsection