@extends('layouts.admin.master') @section('title') Edit Reservation @endsection @section('content')
@csrf @method('PUT')
General Information

View the general information of the reservation.

Registration Type {{ ucfirst($reservation->registration_type) }}
Event Name {{ $reservation->event->name ?? 'N/A' }}
Event Date @if ($reservation->eventDate) {{ \Carbon\Carbon::parse($reservation->eventDate->start_date_time)->format('d M Y, h:i A') }} - {{ \Carbon\Carbon::parse($reservation->eventDate->end_date_time)->format('d M Y, h:i A') }} @else N/A @endif
User Name {{ $reservation->user->name ?? 'N/A' }}
Payment Status @if ($reservation->payment_status === 'success') Success @else Pending @endif
@php $invoice = is_string($reservation->invoice) ? json_decode($reservation->invoice, true) : $reservation->invoice; $eventDate = $reservation->eventDate; @endphp
Edit Participant Details

Update the participant counts below. Fees will be recalculated automatically.

Participant Type Fee (BDT) No. of Participants Subtotal
Alumni {{ number_format($eventDate->fee ?? 0, 2) }} {{ number_format( ($invoice['alumni_fee'] ?? 0) * ($reservation->alumni ?? 0) , 2) }}
Spouse {{ number_format($eventDate->spouse_fee ?? 0, 2) }} {{ number_format( ($invoice['spouse_fee'] ?? 0) * ($reservation->spouse ?? 0) , 2) }}
Children (5–12) {{ number_format($eventDate->children_5_to_12_fee ?? 0, 2) }} {{ number_format( ($invoice['children_5_to_12_fee'] ?? 0) * ($reservation->children_5_to_12 ?? 0) , 2) }}
Children (Below 5) {{ number_format($eventDate->children_below_5_fee ?? 0, 2) }} {{ number_format( ($invoice['children_below_5_fee'] ?? 0) * ($reservation->children_below_5 ?? 0) , 2) }}
Children (Above 12) {{ number_format($eventDate->children_above_12_fee ?? 0, 2) }} {{ number_format( ($invoice['children_above_12_fee'] ?? 0) * ($reservation->children_above_12 ?? 0) , 2) }}
Driver {{ number_format($eventDate->driver_fee ?? 0, 2) }} {{ number_format( ($invoice['driver_fee'] ?? 0) * ($reservation->driver ?? 0) , 2) }}
Maid {{ number_format($eventDate->maid_fee ?? 0, 2) }} {{ number_format( ($invoice['maid_fee'] ?? 0) * ($reservation->maid ?? 0) , 2) }}
Other Guests {{ number_format($eventDate->other_guest_fee ?? 0, 2) }} {{ number_format( ($invoice['other_guest_fee'] ?? 0) * ($reservation->other_guest ?? 0) , 2) }}
Total Amount: {{ number_format(($invoice['total'] ?? 0), 2) }}
Cancel
@endsection @push('js') @endpush