@extends('layouts.backend.app') @section('title', 'Bookings') @section('content')

Bookings

@if(Session::has('success')){{ Session::get('success') }}@endif
@if(Session::has('error')){{ Session::get('error') }}@endif
@foreach ($bookings as $booking) @endforeach
Made By Car Model Start Date End Date Per Hour Total Hour Total Cost Status Actions
{{ $booking->user->name }} {{$booking->car->model}} {{ $booking->start_date }} {{ $booking->end_date }} {{ $booking->price }} RM {{ $booking->hours() }} {{ $booking->totalCost() }} RM @if($booking->status == 1)Ongoing @elseif($booking->status == 3) Declined @else Completed @endif
@csrf @method('PATCH')
@csrf @method('PATCH')
@endsection @section('scripts') @endsection