@extends('layouts.app') @section('title', 'Car Details') @section('content')

{{$car->name}}

Available : @if($car->is_available) Yes @else No @endif
Car Image

Upcoming bookings

@forelse(\App\Helpers\Helpers::upcomingBookings($car) as $booking) @empty @endforelse
Start Date End Date Booked By
{{$booking->start_date}} {{$booking->end_date}} {{$booking->user->name}}
No upcoming bookings
Hourly Price {{$car->hourly_price}} RM
M.G.F Year {{$car->year}}
Model {{$car->model}}
Color
Description {{$car->description}}
Created At {{$car->created_at}}
Updated At {{$car->updated_at}}
@endsection