| Booking No | Date | Type | Customer Name | Total Nett | Action |
|---|---|---|---|---|---|
| {{ $booking->no }} | {{ \Carbon\Carbon::parse($booking->date)->format('d/m/Y') }} | {{ $booking->type == 'W' ? 'Walk In' : 'Online' }} | {{ $booking->member_name ?: ($booking->member_code ?: '-') }} | {{ number_format($booking->nett, 0) }} |
| Package Name | Date & Time | Price | Qty | Gross | Discount % | Discount | Nett | Actions |
|---|---|---|---|---|---|---|---|---|
| @php $isEditMode = isset($packageEditMode[$index]) && $packageEditMode[$index]; @endphp @if($isEditMode) @else {{ $detail['name'] }} @endif |
{{ $detail['date'] ?? 'N/A' }}
{{ $detail['time'] ?? 'N/A' }}
|
@if($isEditMode)
Rp
@else
Rp {{ number_format($detail['price'] ?? 0, 0, ',', '.') }}
@endif
|
@if($isEditMode) @else {{ $detail['qty'] ?? 1 }} @endif | Rp {{ number_format($detail['gross'] ?? 0, 0, ',', '.') }} |
@if($isEditMode)
%
@else
{{ number_format($detail['discp'] ?? 0, 2) }}%
@endif
|
Rp {{ number_format($detail['disc'] ?? 0, 0, ',', '.') }} | Rp {{ number_format($detail['nett'] ?? 0, 0, ',', '.') }} |
@if(!empty($detail['code']))
@php
$isEditMode = isset($packageEditMode[$index]) && $packageEditMode[$index];
@endphp
@if($isEditMode)
|
Scan this QR code to register as an agent for this booking
{{ $qrCodeData['url'] ?? '' }}
Scan this QR code to register booking persons for this group booking
{{ $bookingPersonQRData['url'] ?? '' }}
Assign payment method(s) for agent: {{ $assignPaymentAgentCode }}
| # | Name | Medical Information | Status | Actions |
|---|---|---|---|---|
| {{ $index + 1 }} |
@error('editingPerson.name')
{{ $message }}
@enderror
|
{{ $message }}
@enderror
|
Editing |
|
| {{ $index + 1 }} |
{{ $personName }}
|
@php
$personMedical = is_array($person) ? ($person['medical'] ?? '') : ($person->medical ?? '');
$medicalLabels = [
'no_medical' => 'No Medical Conditions',
'heart_condition' => 'Heart Condition',
'asthma' => 'Asthma',
'epilepsy' => 'Epilepsy',
'broken_bones' => 'Previous Broken Bones',
'dislocated_joints' => 'Dislocated Joints',
'diabetes' => 'Diabetes',
'water_contact_lenses' => 'Water Contact Lenses',
'hearing_impairment' => 'Hearing Impairment',
'pregnant' => 'Pregnant'
];
@endphp
@if(!empty($personMedical))
@php
$medicalConditions = json_decode($personMedical, true);
@endphp
@if(is_array($medicalConditions) && !empty($medicalConditions))
@foreach($medicalConditions as $condition)
@if(isset($medicalLabels[$condition]))
{{ $medicalLabels[$condition] }}
@else
{{ $condition }}
@endif
@endforeach
@else
{{ $personMedical }}
@endif
@else
No medical info
@endif
|
@if($index < $this->maxPersons) Valid @else Extra @endif |
|
Persons will be added when the booking is saved or through QR registration.
Are you sure you want to remove this package?
Are you sure you want to remove this person?
| Field | Original | Requested |
|---|---|---|
| Price | Rp {{ number_format($request->original_price, 0, ',', '.') }} | Rp {{ number_format($request->requested_price, 0, ',', '.') }} |
| Quantity | {{ $request->original_qty }} | {{ $request->requested_qty }} |
| Discount | {{ number_format($request->original_discp, 2) }}% | {{ number_format($request->requested_discp, 2) }}% |
| Package Code | Original Values | Requested Changes | Requested By | Requested At | Actions |
|---|---|---|---|---|---|
| {{ $request->package_code }} |
Price:
Rp {{ number_format($request->original_price, 0, ',', '.') }}
Qty:
{{ $request->original_qty }}
Disc:
{{ number_format($request->original_discp, 2) }}%
|
Price:
Rp {{ number_format($request->requested_price, 0, ',', '.') }}
Qty:
{{ $request->requested_qty }}
Disc:
{{ number_format($request->requested_discp, 2) }}%
|
{{ $request->requested_by ?? 'Unknown' }} | {{ \Carbon\Carbon::parse($request->requested_at)->format('d/m/Y H:i') }} |
|
| Package Name | Price (Editable) | Qty (Read Only) | Gross | Discount % & Rp (Editable) | Net | Actions |
|---|---|---|---|---|---|---|
|
|
(Read Only)
|
({{ number_format($detail['gross'] ?? 0, 0) }})
|
%
Rp
Max: 100% |
@if($this->hasPackageDetailChanges($index))
Changes pending request
@endif
|
{{ number_format($detail['nett'] ?? 0, 0) }}
Gross: {{ number_format($detail['gross'] ?? 0, 0) }}Disc: {{ number_format($detail['disc'] ?? 0, 0) }} |
@if($this->hasPackageDetailChanges($index)) Pending @else No Changes @endif |