<?php

namespace App\Http\Controllers\Admin\Logistics\Vehicle;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class VehicleController extends Controller
{
    public function index()
    {
        return view('admin.logistics.vehicle.index');
    }

    public function dispatch()
    {
        // Placeholder data
        $dispatches = collect([
            ['id' => 1, 'vehicle' => 'Truck A', 'driver' => 'Driver 1', 'route' => 'Route A', 'status' => 'In-transit'],
            ['id' => 2, 'vehicle' => 'Van B', 'driver' => 'Driver 2', 'route' => 'Route B', 'status' => 'Pending'],
            ['id' => 3, 'vehicle' => 'Truck C', 'driver' => 'Driver 3', 'route' => 'Route C', 'status' => 'Delivered'],
        ]);

        return view('admin.logistics.vehicle.dispatch', compact('dispatches'));
    }
}
