@extends('layouts.app') @section('title', 'Admin Dashboard') @section('content') @php use Illuminate\Support\Facades\Crypt; @endphp
Welcome back, {{ Auth::guard('admin')->user()->name }}. Here is the operational snapshot.
| Tracking # | Customer | Destination | Status | Date | Amount | Actions |
|---|---|---|---|---|---|---|
| {{ $shipment->tracking_number ?? 'N/A' }} | {{ $customerName }} | {{ $destination }} | {{ $statusText }} | {{ $shipment->created_at ? $shipment->created_at->format('d-m-Y') : 'N/A' }} | ${{ number_format($amount, 2) }} | |
| No recent shipments found | ||||||
Latest payment records
| SL No | Tracking Number | Date | User | Amount | Payment Status | Tracking Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $slNo }} | {{ $payment->tracking_number ?? 'N/A' }} | created_at) data-order="{{ $payment->created_at->format('Y-m-d H:i:s') }}" @endif>{{ $payment->created_at ? $payment->created_at->format('d-m-Y H:i') : 'N/A' }} |
{{ $customerName }}
{{ $customerEmail ?: 'โ' }}
|
{{ $payment->currency ?? 'USD' }}{{ number_format($payment->amount ?? 0, 2) }} | @if(in_array($payment->payment_status, ['success', 'paid', 'completed'])) {{ ucfirst($payment->payment_status === 'paid' ? 'Paid' : ($payment->payment_status === 'completed' ? 'Completed' : 'Success')) }} @elseif($payment->payment_status == 'pending') Pending @else {{ ucfirst($payment->payment_status ?? 'Failed') }} @endif | @if($latestTrackingStatus) {{ $latestTrackingStatus->display_status ?? $latestTrackingStatus->status ?? 'N/A' }} @else No Status @endif |