+
+
+ {/* Welcome banner */}
+
+
+
+
+ {me.company.charAt(0)}
+
+
+
Welcome back
+
+ {me.name}
+
+
+
+ {me.company}
+ ·
+
+ {me.customerType}
+
+
+
+
+
+
+
+
+
+
+
+ Track Shipment
+
+
+
+
+
+ {/* My KPIs */}
+
+ }
+ href="/bookings"
+ />
+ }
+ href="/tracking"
+ />
+ }
+ href="/billing"
+ tone={outstandingInvoices.some((i) => i.status === "Overdue") ? "danger" : "brand"}
+ />
+ }
+ />
+
+
+ {/* Active Shipments */}
+
+
+
+
+ Active Shipments
+
+
+ Live tracking for your in-flight cargo
+
+
+
+ View all
+
+
+
+
+ {activeShipments.length === 0 ? (
+
+ No shipments currently in transit.
+
+ ) : (
+
+ {activeShipments.slice(0, 4).map((shipment) => (
+
+
+
+ {shipment.reference}
+
+
+
+
+ {shipment.originStation}
+
+ {shipment.destinationStation}
+
+
+
+
+ {shipment.currentLocation}
+
+ ETA {shipment.eta}
+
+
+
+ ))}
+
+ )}
+
+
+ {/* Recent Bookings + Invoices + Profile */}
+
+ {/* Recent bookings */}
+
+
+
+
+ Recent Bookings
+
+
+ Your latest freight requests
+
+
+
+ View all
+
+
+
+
+ {recentBookings.length === 0 ? (
+
+ You haven't booked any freight yet.
+
+ ) : (
+
+
+
+
+ | Reference |
+ Route |
+ Cargo |
+ Status |
+ Action |
+
+
+
+ {recentBookings.map((booking) => (
+
+ |
+ {booking.reference}
+ |
+
+ {booking.originStation} → {booking.destinationStation}
+ |
+
+ {booking.cargoType}
+ |
+
+
+ |
+
+
+
+
+ |
+
+ ))}
+
+
+
+ )}
+
+
+ {/* Profile card */}
+
+
+ My Profile
+
+
Account information
+
+
+
}
+ label="Company"
+ value={me.company}
+ />
+
}
+ label="Email"
+ value={me.email}
+ />
+
}
+ label="Phone"
+ value={me.phone}
+ />
+
}
+ label="Location"
+ value={`${me.city}, ${me.country}`}
+ />
+
+
+
+ View full profile
+
+
+
+
+
+ {/* Invoices */}
+
+
+
+
+ Recent Invoices
+
+
+ {outstandingInvoices.length} outstanding ·{" "}
+ {myInvoices.length} total
+
+
+
+ View all
+
+
+
+
+ {recentInvoices.length === 0 ? (
+
+ No invoices yet.
+
+ ) : (
+
+ {recentInvoices.map((invoice) => (
+
+
+
+
+
+
+ {invoice.number}
+
+
+ {formatCurrency(invoice.amount, invoice.currency)}
+
+
+
+ Due {invoice.dueDate}
+
+
+ ))}
+
+ )}
+
+