@extends('layouts.themed-app') @section('title', 'Dashboard') @section('subtitle', "Welcome back! Here's your fleet overview.") @section('content') @php $company = auth()->user()->company; $truckCount = count($company->trucks ?? []); $driverCount = count($company->drivers ?? []); $activeLoads = $totals['load_count'] ?? 0; $netProfit = $totals['net_profit'] ?? 0; @endphp @if(!auth()->user()->company)
Company Setup Required
Complete your company setup to start managing your fleet and drivers.
${{ number_format($totals['revenue'] ?? 0, 2) }}
Gross load revenue booked to date.
{{ $activeLoads }}
Total loads currently tracked in the system.
{{ $truckCount }}
Total trucks assigned to your company.
{{ $driverCount }}
Drivers currently linked to your fleet.
Jump into the next task for your fleet.
Company Name
{{ auth()->user()->company->name ?? 'N/A' }}
MC Number
{{ auth()->user()->company->mc_number ?? 'N/A' }}
DOT Number
{{ auth()->user()->company->dot_number ?? 'N/A' }}