@extends('my.admin.layouts.master') @section('content') @if (session('success'))
{{ session('success') }}
@endif
Booking Details
{{--
Create
--}}
@php $user = Auth::user(); @endphp
@foreach ($bookings as $booking) {{-- --}} {{-- --}} {{-- view --}} @endforeach
User Car Book Place Destination Book Date Return Date Days Duration Status Actions
@if ($booking->user->profile_picture && Storage::disk('public')->exists($booking->user->profile_picture)) User's profile picture @else Default profile picture @endif
{{ $booking->user->name }}
{{ $booking->car->name }}
{{ $booking->car->name }}
{{ $booking->book_place }} {{ $booking->destination }} {{ $booking->formatted_book_date }} {{ $booking->formatted_return_date }} {{ $booking->duration_in_days }} day's{{ ucfirst($booking->book_status) }} @if ($booking->book_status === 'pending') {{ ucfirst($booking->book_status) }} @elseif($booking->book_status === 'approved') {{ ucfirst($booking->book_status) }} @elseif($booking->book_status === 'rejected') {{ ucfirst($booking->book_status) }} @else {{ ucfirst($booking->book_status) }} @endif
{{-- edit --}}
{{-- delete --}}
@csrf @method('DELETE')
@endsection