@extends('frontend.diagnostic.layouts.template-base') @section('meta_tags') @include('frontend.diagnostic.layouts.meta-tags', ['title' => 'My Bookings', 'page' => 'bookings']) @endsection @section('header') @include('frontend.diagnostic.layouts.header') @endsection {{-- @dd(Auth::check()) --}} @section('content')
@forelse($bookings as $booking) @php $package = $booking->packages->first(); @endphp
{{ $package?->title ?? 'Test' }}

{{ $booking->packages->pluck('title')->join(', ') ?: 'Test Booking' }}

{{ $booking->status == 1 ? 'Confirmed' : 'Pending' }}

Booking ID: VM{{ $booking->id }}

Collection date: {{ $booking->date?->format('d M Y') ?? 'N/A' }}

Collection type: Home visit

Report: {{ $booking->reportStatusLabel() }}

@if($booking->isReportPublished()) View report @endif
@empty
No bookings yet

{{ \App\Support\HomeCollectionServiceArea::bookingIntroLine() }}

Browse packages
@endforelse
@endsection