{{ $booking->group_name ? 'Group '.$booking->group_name : ('Booker '.$booking->nama)}}

@foreach ($booking->bookingDetails as $no => $bdetail) @if ($bdetail->array_sub == 0 && $bdetail->room_index === 1) Arrival Date : {{ formatDate($bdetail->start_date, "DD-MM-YYYY") }}
Departure Date : {{ formatDate($bdetail->end_date, "DD-MM-YYYY") }} @endif @endforeach
{{--

{{ formatDate($booking->start_date, "DD-MM-YYYY") }} - {{formatDate($booking->end_date, "DD-MM-YYYY")}}

--}} @php $nomor = 1; @endphp @foreach ($booking->bookingDetails as $no => $bdetail) @if ($bdetail->array_sub == 0) @php $nomor++; @endphp @endif @endforeach
No Guest Name Phone No Room Type Signature
{{$nomor}} {{$bdetail->guest_room ?? $booking->nama}} {{$bdetail->nomor_kamar ?? ' - '}} {{ array_key_exists($bdetail->jns_kamar, $roomtag) ? ($roomtag[$bdetail->jns_kamar] == "" ? initial($bdetail->jns_kamar) : $roomtag[$bdetail->jns_kamar]) : initial($bdetail->jns_kamar) }}