@extends('Admin.layouts.app') @section('title', 'Booking Detail') @section('content')

Booking Details

{{-- Booking Info --}}
{{--
Booking Information
--}}
Booking ID #{{ $booking->id }}
Status {{ $booking->status }}
Type {{ $booking->type }}
Date & Time {{ $booking->booking_date }} {{ $booking->start_time }}
{{-- Provider Info --}}
Provider Detail
Provider

{{ $booking->providers?->name ?? 'N/A' }}

{{ $booking->providers?->phone ?? 'N/A' }}
{{-- Seeker Info --}}
Seeker Detail
Seeker

{{ $booking->seekers?->name ?? 'N/A' }}

{{ $booking->seekers?->phone ?? 'N/A' }}
{{-- Attachments --}}
Attachments
@if($booking->attachments->isEmpty())

No attachments.

@else
    @foreach($booking->attachments as $attachment)
  • View Attachment
  • @endforeach
@endif
{{-- Rating --}}
Rating & Review
@if($booking->rating_detail ?? false)

By: {{ $booking->rating_detail->name }}

Rating: @for($i = 1; $i <= 5; $i++) @endfor

Review: {{ $booking->rating_detail->review ?? 'No review given' }}

@else

No rating yet.

@endif
{{-- Address & Location --}} {{-- Address & Location --}}
Address & Location
@if(!empty($booking->seekers?->address))

Address: {{ $booking->seekers->address }}

@else

No address or location found.

@endif
{{-- Actions --}}
Actions
@if($booking->status !== 'Completed')
@csrf
@if($booking->status !== 'Accepted') @endif @if($booking->status !== 'Rejected') @endif
@else
Booking has been completed.
@endif
@endsection @push('body-scripts') @endpush