@extends('layouts.admin.master') @section('title') Reservation Details @endsection @section('content')

Reservation Details

@if (auth()->id() == $eventReservation->user_id) Edit Back to List @else Back to List @endif
General Information
Registration Type {{ ucfirst($eventReservation->registration_type) }}
Event Name {{ $eventReservation->event->name ?? 'N/A' }}
Event Date @if ($eventReservation->eventDate) {{ \Carbon\Carbon::parse($eventReservation->eventDate->start_date_time)->format('d M Y, h:i A') }} - {{ \Carbon\Carbon::parse($eventReservation->eventDate->end_date_time)->format('d M Y, h:i A') }} @else N/A @endif
User Name {{ $eventReservation->user->name ?? 'N/A' }}
Payment Status @if ($additionalEventReservation->payment_status === 'success') Success @else Pending @endif
Special Requirements

{{ $additionalEventReservation->special_requirements ?? 'N/A' }}

@php $invoice = is_string($additionalEventReservation->invoice) ? json_decode($additionalEventReservation->invoice, true) : $additionalEventReservation->invoice; $maintenanceFeePercent = config('services.maintenance_fee'); $subTotal = $invoice['total'] ?? 0; $maintenanceFeeAmount = ($subTotal * $maintenanceFeePercent) / 100; $grandTotal = $subTotal + $maintenanceFeeAmount; @endphp @if ($invoice)
Additional Participant Details
{{-- Small font --}}
Participant Type Fee (BDT) Participant Subtotal
Spouse {{ $eventReservation->eventDate->spouse_fee }} {{ $invoice['spouse'] ?? 0 }} {{ number_format($invoice['spouse_fee'] ?? 0, 2) }}
Children (Below 5) {{ $eventReservation->eventDate->children_below_5_fee }} {{ $invoice['children_below_5'] ?? 0 }} {{ number_format($invoice['children_below_5_fee'] ?? 0, 2) }}
Children (5–12) {{ $eventReservation->eventDate->children_5_to_12_fee }} {{ $invoice['children_5_to_12'] ?? 0 }} {{ number_format($invoice['children_5_to_12_fee'] ?? 0, 2) }}
Children (Above 12) {{ $eventReservation->eventDate->children_above_12_fee }} {{ $invoice['children_above_12'] ?? 0 }} {{ number_format($invoice['children_above_12_fee'] ?? 0, 2) }}
Driver {{ $eventReservation->eventDate->driver_fee }} {{ $invoice['driver'] ?? 0 }} {{ number_format($invoice['driver_fee'] ?? 0, 2) }}
Maid {{ $eventReservation->eventDate->maid_fee }} {{ $invoice['maid'] ?? 0 }} {{ number_format($invoice['maid_fee'] ?? 0, 2) }}
Other Guests {{ $eventReservation->eventDate->other_guest_fee }} {{ $invoice['other_guest'] ?? 0 }} {{ number_format($invoice['other_guest_fee'] ?? 0, 2) }}
Total (Before Maintenance Fee) {{ number_format($subTotal, 2) }}
Maintenance Fee ({{ $maintenanceFeePercent }}%) {{ number_format($maintenanceFeeAmount, 2) }}
Grand Total {{ number_format($grandTotal, 2) }}
@endif
@endsection