@extends('layouts.app') @section('content')
Account Verified & Active

Worldwide Dealership Control Hub

Welcome back, {{ Auth::user()->name }}. Select below to manage Sales Departments or Cars Fleet, open the standard entry forms, and submit new records across {{ $locationsCount }} global locations.

@if(Auth::user()->role === 'admin') @php $pendingCount = \App\Models\Car::where('approval_status', 'pending')->count(); @endphp
🛡️

Post Moderation & Approvals Center

@if($pendingCount > 0) {{ $pendingCount }} Pending Approval @else All Posts Reviewed @endif

All user car posts must be accepted by the admin before being published to the public fleet • Word filter is active.

Review Posts ({{ $pendingCount }}) →
@endif

Select Department or Cars

Choose a section below to open its submission form or browse existing records

🏢
{{ $departmentsCount }} Active Divisions

Sell Departments

Manage sales divisions, assign team managers, establish quarterly revenue targets, and track branch performance across luxury, electric, and fleet departments.

🚗
{{ $availableCarsCount }} Available for Sale

Cars & Vehicle Fleet

Register new vehicle inventory, assign cars to corresponding sales departments, record VIN numbers, pricing, specifications, and execute client sales.

🌍 Worldwide Showrooms & Hubs

Live inventory distribution across global dealerships

View All {{ $locationsCount }} Locations →
@foreach($worldwideLocations as $loc) {{ $loc->country_code }} {{ $loc->city }} {{ $loc->cars_count }} Vehicles @endforeach
Total Departments
{{ $departmentsCount }}
Operational Divisions
Total Fleet Cars
{{ $carsCount }}
{{ $availableCarsCount }} Available • {{ $soldCarsCount }} Sold
Active Inventory Value
${{ number_format($totalInventoryValue, 0) }}
Ready for delivery
Total Sales Closed
${{ number_format($totalSalesAmount, 0) }}
Settled revenue

📊 Analytics & Chart Layouts

Live visual metrics of department targets, vehicle fuel distribution, and worldwide fleet stock

● Real-Time Data

Department Targets vs Closed Sales ($)

Target revenue compared to verified customer sales

Fleet Powertrain Mix

Fuel & battery breakdown

Vehicles Stationed by Worldwide Showroom

Inventory allocation across international locations

🏢 Sales Departments

+ Open Form
@forelse($recentDepartments as $dept) @empty @endforelse
Department Manager Cars Target
{{ $dept->name }} {{ $dept->code }} • {{ $dept->branchLocation?->city ?? 'Central' }} {{ $dept->head_of_department }} {{ $dept->cars_count }} ${{ number_format($dept->sales_target, 0) }}
No departments yet. Create one now

🚗 Recent Cars in Fleet

+ Open Form
@forelse($recentCars as $car) @empty @endforelse
Vehicle Location Status Price
{{ $car->full_name }} {{ $car->vin }} 🌍 {{ $car->location?->city ?? 'Central' }} @if($car->status === 'available') Available @elseif($car->status === 'sold') Sold @else {{ ucfirst($car->status) }} @endif {{ $car->formatted_price }}
No cars in fleet yet. Add a car now
@endsection