@extends('layouts.app') @section('title', 'Dashboard') @section('content') @php $breadcrumbs = [['label' => 'Dashboard']]; @endphp

Welcome back, {{ auth()->user()->name ?? 'User' }}!

Here's what's happening with your operations today.

Export Shipments - Monthly Trend
Shipments by Mode
Import Shipments - Monthly Trend
Financial Summary
Receivables ₹{{ number_format($receivables ?? 3450000) }}
Payables ₹{{ number_format($payables ?? 2100000) }}
Cash Position ₹{{ number_format($cashPosition ?? 1350000) }}

Net Position: ₹{{ number_format(($receivables ?? 3450000) - ($payables ?? 2100000)) }}
Recent Shipments
View All
@forelse($recentShipments ?? [] as $shipment) @empty @foreach([ ['EXP-2026-001247', 'Tata Steel Ltd.', 'Mumbai', 'Rotterdam', 'Ocean', 'in_transit'], ['EXP-2026-001246', 'Reliance Industries', 'Nhava Sheva', 'Singapore', 'Ocean', 'cleared'], ['EXP-2026-001245', 'Wipro Ltd.', 'Bangalore', 'Frankfurt', 'Air', 'booked'], ['EXP-2026-001244', 'Infosys Ltd.', 'Chennai', 'New York', 'Air', 'in_transit'], ['EXP-2026-001243', 'HDFC Bank', 'Mumbai', 'London', 'Air', 'delivered'], ] as $s) @endforeach @endforelse
Shipment # Customer Origin Destination Mode Status Actions
{{ $shipment->shipment_number }} {{ $shipment->customer->name ?? 'N/A' }} {{ $shipment->origin_port->name ?? 'N/A' }} {{ $shipment->destination_port->name ?? 'N/A' }} {{ $shipment->mode ?? 'N/A' }}
{{ $s[0] }} {{ $s[1] }} {{ $s[2] }} {{ $s[3] }} {{ $s[4] }}
Pending Approvals
{{ $pendingApprovals ?? 23 }}
@forelse($pendingApprovalsList ?? [] as $approval)

{{ $approval->title ?? 'Approval' }}

{{ $approval->requested_by ?? 'System' }} · {{ $approval->created_at?->diffForHumans() ?? '' }}
@empty @foreach([ ['PO Approval - #PO-4521', 'Rajesh Kumar', '2 hours ago'], ['Invoice Approval - #INV-8892', 'Priya Singh', '4 hours ago'], ['Discount Request - #QUO-1123', 'Amit Patel', '6 hours ago'], ] as $a)

{{ $a[0] }}

{{ $a[1] }} · {{ $a[2] }}
@endforeach @endforelse
Activity Timeline
View All
@php $activities = $activities ?? collect(); $sampleActivities = [ ['icon' => 'bi-truck', 'color' => 'primary', 'message' => 'Shipment EXP-2026-001247 departed from Mumbai Port', 'time' => '10 minutes ago', 'user' => 'System'], ['icon' => 'bi-check-circle', 'color' => 'success', 'message' => 'Invoice #INV-8892 approved by Finance Manager', 'time' => '32 minutes ago', 'user' => 'Priya Singh'], ['icon' => 'bi-file-earmark-plus', 'color' => 'info', 'message' => 'Bill of Entry #BOE-4521 uploaded for Import Shipment', 'time' => '1 hour ago', 'user' => 'Amit Patel'], ['icon' => 'bi-person-plus', 'color' => 'secondary', 'message' => 'New customer "Global Trade Corp" created', 'time' => '2 hours ago', 'user' => 'Rajesh Kumar'], ['icon' => 'bi-credit-card', 'color' => 'warning', 'message' => 'Payment of ₹4,50,000 received from Tata Steel', 'time' => '3 hours ago', 'user' => 'System'], ['icon' => 'bi-box-seam', 'color' => 'primary', 'message' => 'Container MSKU-7261948 cleared customs at Chennai', 'time' => '4 hours ago', 'user' => 'Customs Broker'], ['icon' => 'bi-exclamation-triangle', 'color' => 'danger', 'message' => 'Document DO-2023-456 for shipment delayed - action needed', 'time' => '5 hours ago', 'user' => 'System'], ['icon' => 'bi-gear', 'color' => 'secondary', 'message' => 'Exchange rate updated: USD/INR = 83.45', 'time' => '6 hours ago', 'user' => 'System'], ]; $activityList = $activities->count() > 0 ? $activities : $sampleActivities; @endphp
@foreach($activityList as $activity)

{{ $activity['message'] ?? '' }}

{{ $activity['time'] ?? '' }} · {{ $activity['user'] ?? '' }}
@endforeach
Notifications
View All
@forelse(auth()->user()->notifications()->latest()->take(8)->get() ?? collect() as $notification)

{{ $notification->data['message'] ?? 'Notification' }}

{{ $notification->created_at->diffForHumans() }}
@empty @foreach([ ['icon' => 'exclamation-triangle', 'color' => 'warning', 'message' => 'Container MSKU-9876543 is arriving tomorrow - prepare clearance documents', 'time' => '5 minutes ago'], ['icon' => 'check-circle', 'color' => 'success', 'message' => 'DGFT license renewal approved - valid until 31 Dec 2026', 'time' => '1 hour ago'], ['icon' => 'envelope', 'color' => 'info', 'message' => 'New quotation request from Reliance Industries Ltd.', 'time' => '2 hours ago'], ['icon' => 'currency-exchange', 'color' => 'primary', 'message' => 'USD/INR exchange rate alert: Rate crossed 83.50', 'time' => '3 hours ago'], ['icon' => 'calendar-event', 'color' => 'danger', 'message' => 'ICEGATE submission deadline for BOE-4567 is tomorrow', 'time' => '4 hours ago'], ['icon' => 'person-check', 'color' => 'success', 'message' => 'New user "Sanjay Mehta" registered and awaiting approval', 'time' => '5 hours ago'], ['icon' => 'file-earmark-x', 'color' => 'danger', 'message' => 'Invoice #INV-8871 rejected by customer - see remarks', 'time' => '6 hours ago'], ['icon' => 'truck', 'color' => 'primary', 'message' => 'Shipment EXP-2026-001240 status updated to "Delivered"', 'time' => '8 hours ago'], ] as $n)

{{ $n['message'] }}

{{ $n['time'] }}
@endforeach @endforelse
@endsection @push('scripts') @endpush