@extends('layouts.sidebar') @section('title', 'Nomadic - Booking Confirmation Detail') @section('content')

Booking #{{ $booking->booking_id }}

Back to List
@if(session('success')) @endif @if(session('error')) @endif
{{-- Booking Info --}}
Booking Details
@if($booking->confirmation_deadline) @endif
Member{{ $member ? $member->fname . ' ' . $member->lname : 'N/A' }}
Email{{ $member->email ?? 'N/A' }}
Location{{ $booking->location_name }}
Date{{ $booking->start_date }} - {{ $booking->end_date }}
Time{{ substr($booking->start_time, 0, 5) }} - {{ substr($booking->end_time, 0, 5) }}
Total Points{{ $booking->total_points }} pts
Booking Status @if($booking->status == 0) Active @elseif($booking->status == 1) Completed @elseif($booking->status == 2) Cancelled @endif
Confirmation @if($booking->confirmation_status === 'pending') Pending Confirmation @elseif($booking->confirmation_status === 'confirmed') All Confirmed @elseif($booking->confirmation_status === 'escalated') Escalated @elseif($booking->confirmation_status === 'declined') Declined @endif
Deadline {{ \Carbon\Carbon::parse($booking->confirmation_deadline)->format('M d, Y H:i') }} @if(\Carbon\Carbon::parse($booking->confirmation_deadline)->isFuture()) ({{ \Carbon\Carbon::parse($booking->confirmation_deadline)->diffForHumans() }}) @else (expired) @endif
{{-- Booked Resources --}}
Booked Resources
@if($studioData) @endif @if($studioEquipmentData) @endif @if($equipmentData) @endif @if($resourceData) @endif
Studio {{ $studioData->name }} {{ $details->where('type','studio')->first()->points ?? 0 }} pts
Studio Equipment {{ $studioEquipmentData->name }} {{ $details->where('type','studio_equipment')->first()->points ?? 0 }} pts
Rental Equipment {{ $equipmentData->name }} {{ $details->where('type','rental')->first()->points ?? 0 }} pts
Team Member {{ $resourceData->fname }} {{ $resourceData->lname }} {{ $details->where('type','resource')->first()->points ?? 0 }} pts
{{-- Confirmation Status per Party --}}
Confirmation Status
@foreach($confirmations as $conf) @php $confUser = $confirmerUsers[$conf->user_id] ?? null; @endphp @endforeach
Name Role Resource Status Responded At Decline Reason
{{ $confUser ? $confUser->fname . ' ' . $confUser->lname : 'Unknown' }} {{ ucwords(str_replace('_', ' ', $conf->role)) }} {{ ucwords(str_replace('_', ' ', $conf->resource_type)) }} @if($conf->status === 'pending') Pending @elseif($conf->status === 'confirmed') Confirmed @else Declined @endif {{ $conf->responded_at ? \Carbon\Carbon::parse($conf->responded_at)->format('M d, Y H:i') : '-' }} @if($conf->decline_reason_code) {{ ucwords(str_replace('_', ' ', $conf->decline_reason_code)) }} @if($conf->decline_reason_text)
{{ $conf->decline_reason_text }} @endif @else - @endif
{{-- Action Buttons --}} @if($myConfirmation && $myConfirmation->status === 'pending')
Your Action
{{-- Confirm Button --}}
@csrf
{{-- Decline Form --}}
@csrf
@endif {{-- Location Manager Escalation Actions --}} @if($isLocationManager && ($booking->confirmation_status === 'escalated' || $booking->confirmation_status === 'pending'))
Location Manager Actions

As location manager, you can force-confirm or cancel this booking.

@csrf
@csrf
@endif {{-- Report No-Show (visible when booking is confirmed and start time is past or near) --}} @if($booking->confirmation_status === 'confirmed' && $booking->status == 0)
Report No-Show

If a confirmed resource did not show up for this session, report them here.

@php $resourceDetails = $details->whereIn('type', ['resource', 'rental', 'studio_equipment']); @endphp @if($resourceDetails->isNotEmpty())
@csrf
@else

No reportable resources in this booking.

@endif
@endif
@endsection