@extends('layouts.app') @section('title', 'BusGo | Dashboard') @section('content')

Welcome back, {{ Auth::user()->name }}!

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

Active Buses

{{ $stats['active_buses'] ?? 0 }}

Active Drivers

{{ $stats['active_drivers'] ?? 0 }}

Total Trips

{{ $stats['total_trips'] ?? 0 }}

Total Bookings

{{ $stats['total_bookings'] ?? 0 }}

Revenue Overview

Total Revenue

ZMW {{ number_format($stats['revenue'] ?? 0, 2) }}

Refunds

ZMW {{ number_format($stats['refunds'] ?? 0, 2) }}

Net Revenue ZMW {{ number_format(($stats['revenue'] ?? 0) - ($stats['refunds'] ?? 0), 2) }}

Booking Status

Total Bookings

{{ $stats['total_bookings'] ?? 0 }}

Current Bookings

{{ $stats['current_bookings'] ?? 0 }}

Cancelled Bookings

{{ $stats['cancelled_bookings'] ?? 0 }}

Cancelled Trips

{{ $stats['cancelled_trips'] ?? 0 }}

Company Information

Company Name

{{ Auth::user()->company->name ?? 'N/A' }}

Company Email

{{ Auth::user()->company->email ?? 'N/A' }}

Admin Name

{{ Auth::user()->name }}

Admin Email

{{ Auth::user()->email }}

Getting Started

1

Add Buses

Register your fleet vehicles

Go →
2

Add Stations

Set up your routes and stations

Go →
3

Create Trips

Schedule your first trip

Go →
@if(($stats['total_bookings'] ?? 0) > 0 || ($stats['total_trips'] ?? 0) > 0)

Quick Actions

View All Bookings View All Trips View Payments
@endif @endsection