@extends('cargo_company.templates.layout') @section('head') @endsection @section('content') @php $hour = (int) now()->format('H'); $greeting = $hour < 12 ? 'Good morning' : ($hour < 18 ? 'Good afternoon' : 'Good evening'); $displayName = auth()->user()->name ?? 'Warehouse'; @endphp

{{ $greeting }}, {{ $displayName }} 👋

Here's what's coming into the warehouse today.

@if(($stats['verification_pending'] ?? 0) > 0)
{{ $stats['verification_pending'] }} {{ \Illuminate\Support\Str::plural('delivery', $stats['verification_pending']) }} awaiting verification
Verify Now
@endif
Today's Overview
View All Deliveries
@php $statCards = [ ["Today's Expected", 'todays_expected', 'ri-calendar-check-line', 'violet'], ['Arriving', 'arriving', 'ri-truck-line', 'blue'], ['Arrived', 'arrived', 'ri-inbox-archive-line', 'amber'], ['Verification Pending', 'verification_pending', 'ri-qr-scan-line', 'cyan'], ['Completed', 'completed', 'ri-check-double-line', 'green'], ]; @endphp @foreach($statCards as [$label, $key, $icon, $color])
{{ $label }}
{{ number_format((int) ($stats[$key] ?? 0)) }}
@endforeach
Recent Deliveries
View All
@forelse($recent as $d) @php $dInfo = $d->status_info ?? (config("global.transporter_delivery_statuses.{$d->status}") ?? ['text' => '—', 'class' => 'secondary']); @endphp @empty @endforelse
Tracking Order Transporter Qty Est. Arrival Status Action
{{ $d->tracking_number }} {{ $d->order?->order_reference ?? '—' }} @if($d->transporter)
{{ $d->transporter->name ?: '—' }}
{{ $d->transporter->user_code ?? '' }}
@else — @endif
{{ number_format((int) $d->quantity) }} {{ $d->arrival_estimate ? web_date_in_timezone($d->arrival_estimate, 'M d, Y') : '—' }} {{ $dInfo['text'] }} Verify
No deliveries yet
@endsection