@section('title', 'Block Booking') @section('heading', 'Block Booking') @section('top-menu-items') @endsection
@if (session()->has('message'))
{{ session('message') }}
@endif @can('write_billing') @endcan @forelse ($selectedBlocks as $block) @php // compute date/time display safely $startDateTime = \Carbon\Carbon::parse($block->booking_date); $bookingDate = $startDateTime->format('Y-m-d'); $startTime = $startDateTime->format('H:i'); $endTime = $startDateTime->copy()->addMinutes($block->selected_duration)->format('H:i'); $partnerOrganization = $block->order?->block_schedule_partner_organization ?? 'N/A'; $blockScheduleNotes = $block->order?->block_schedule_notes ?? 'N/A'; @endphp @can('write_billing') @endcan @empty @endforelse
Date Group Title Block Title Vessel Name Start Time End Time Duration Partner Organization Block Schedule NotesActions
{{ \Carbon\Carbon::parse($bookingDate)->format('Y-m-d') }} {{ $block->order->group_title ?? 'N/A'}} {{ $block->block_title }} {{ $block->vessel->name }} {{ \Carbon\Carbon::parse($bookingDate . ' ' . $startTime)->format('h:i A') }} {{ \Carbon\Carbon::parse($bookingDate . ' ' . $endTime)->format('h:i A') }} {{ $block->selected_duration }} mins {{ $partnerOrganization }} {{ $blockScheduleNotes }} Actions
No Block Bookings found.
{{ $selectedBlocks->onEachSide(1)->links('livewire::bootstrap') }}
@push('scripts') @endpush