@extends('layouts.app') @section('content')
Vehicles
Add Vehicle
@if(request('category_id')) Clear @endif
@if($vehicles->count() > 0)
@foreach($vehicles as $vehicle) @endforeach
Name Category Vehicle Type Departure Return Price Status Actions
{{ $vehicle->name }} {{ $vehicle->category->name ?? '-' }} {{ $vehicle->vehicle_type ?? '-' }} @if($vehicle->departure_time) {{ \Carbon\Carbon::parse($vehicle->departure_time)->format('h:i A') }} @else - @endif @if($vehicle->return_time) {{ \Carbon\Carbon::parse($vehicle->return_time)->format('h:i A') }} @else - @endif ₹{{ number_format($vehicle->price ?? 0, 2) }} @if($vehicle->status == 1) Active @else Inactive @endif
@else
No Vehicles Yet

Create your first vehicle to manage taxi services.

@endif
@endsection @section('scripts') @endsection