@foreach ($bookings as $booking) @endforeach
Kode Booking Hotel Nama Kamar Jumlah Source Status Booking Expected Arrival Check In Check Out
{{@$booking->booking->kode_booking}} {{@$booking->booking->hotel->nama}} {{@$booking->guest_room}} {{-- @foreach ($booking->bookingDetails as $bookdetail) {{$bookdetail->jns_kamar}}
@endforeach --}} {{@$booking->nomor_kamar ? $booking->nomor_kamar : 'no room'}} - {{@$booking->jns_kamar}}
{{@$booking->jumlah_malam ?? $booking->jumlah_malam_old}} Malam
{{@$booking->pax}} Pax {{-- {{@$booking->jml_anak}} Anak --}}
{{@$booking->booking->source ? config('custom.source.'.@$booking->booking->source) : '-'}} {{@$booking->booking->status_booking ? config('custom.status_booking.'.@$booking->booking->status_booking) : '-'}} {{@$booking->expected_arrival ? dateFormat($booking->expected_arrival, 'd-m-Y H:i:s') : dateFormat($booking->start_date, 'd-m-Y')}} {{@$booking->checkin ? dateFormat($booking->checkin, 'd-m-Y H:i:s'):'-'}} {{$booking->checkout?dateFormat($booking->checkout, 'd-m-Y H:i:s'):'-'}}