@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Data Guest List Report') @section('css') @endsection @section('content')
{{-- Room sales --}}

Period:

Status:

Filter:

{{-- --}}
{{-- --}} @php $no = 1; $total_breakfast = 0; $total_room_have_breakfast = 0; @endphp @if (count($guests) > 0) @foreach($guests as $key => $id_guests) @foreach ($id_guests as $guest) {{-- cek data --}} {{-- @php $tanggal = date('Y-m-d', strtotime(getSystemDate()) ); if (app('request')->input('tanggal')) { $tanggal = date('Y-m-d', strtotime(app('request')->input('tanggal'))); } $datenow = date('Y-m-d', strtotime($guest['detail']->date_now)); $datenowbefore = date('Y-m-d', strtotime('-1 day', strtotime($tanggal))); $datecheckout = date('Y-m-d', strtotime($guest['detail']->booking->end_date)); @endphp --}} {{-- {{$key}}
nama {{$guest['guest']->nama}}
tg bd {{$datenow}}
tg bd before {{$datenowbefore}}
co {{$datecheckout}}
tg {{$tanggal}}
@if ($datecheckout > $tanggal) @if ($datenow >= $datenowbefore) checkout {{$datecheckout}} lebih dari datenow : {{$tanggal}}
@continue @endif @endif --}} {{-- --}} @php $no++; @endphp @endforeach @endforeach @if(null === $no_roomrate) @endif @else @endif
No RmNo RmType/ArrangementArrangementName License plate Rate Code RmRate Incl. Breakfast Deposit Night Bill A/Ch ResNo C/I C/O Email Nat Company/TA Segment
{{$no}} {{$guest['roomcurrent']}} {{ array_key_exists($guest['detail']->jns_kamar, $roomtag) ? ($roomtag[$guest['detail']->jns_kamar] == "" ? initial($guest['detail']->jns_kamar) : $roomtag[$guest['detail']->jns_kamar]) : initial($guest['detail']->jns_kamar) }}/{{$guest['detail']->arrangement_codes}} {{$guest['detail']->arrangement_codes}} {{-- {{strtoupper($guest['guest']->title)}} --}} {{$guest['detail']->guest_room}} {{$guest['guest']->plat_nomor ?? '-'}} {{$guest['detail']->rate_codes}} {{ribuan($guest['detail']->per_item)}} {!! array_key_exists($guest['detail']->arrangement_id, $room_breakfast) ? ($room_breakfast[$guest['detail']->arrangement_id] == "" ? '-' : 'Yes') : '-' !!} @if(array_key_exists($guest['detail']->arrangement_id, $room_breakfast)) @if($room_breakfast[$guest['detail']->arrangement_id] != "") @php $total_room_have_breakfast += 1 @endphp @endif @endif {{($guest['invoice_payment']?ribuanWithComma($guest['invoice_payment']) :'-') ?? '-'}} {{($guest['night']? ribuanWithComma($guest['night']) :' ') ?? ' '}} Night {{($guest['invoice_bill']? ribuanWithComma($guest['invoice_bill']) :'-') ?? '-'}} {{$guest['detail']->pax}}/{{$guest['guest']->jml_anak}} @if(array_key_exists($guest['detail']->arrangement_id, $room_breakfast)) @if($room_breakfast[$guest['detail']->arrangement_id] != "") @php $total_breakfast += $guest['detail']->pax @endphp @endif @endif {{$guest['guest']->kode_booking}} {{$guest['detail']->checkin_real ? dateFormat($guest['detail']->checkin_real, 'd-m-Y') : ($guest['detail']->checkin ? $guest['detail']->checkin->format('d-m-Y') : '-')}}
{{$guest['detail']->checkin_real ? dateFormat($guest['detail']->checkin_real, 'H:i:s') : ($guest['detail']->checkin ? $guest['detail']->checkin->format('H:i:s') : null)}}
{{$guest['detail']->checkout_real ? dateFormat($guest['detail']->checkout_real, 'd-m-Y') : ($guest['detail']->checkout ? $guest['detail']->checkout->format('d-m-Y') : '-')}}
{{$guest['detail']->checkout_real ? dateFormat($guest['detail']->checkout_real, 'H:i:s') : ($guest['detail']->checkout ? $guest['detail']->checkout->format('H:i:s') : null)}}
{{$guest['guest']->email}} {{$guest['guest']->kewarganegaraan}} {{$guest['guest']->company ? $guest['guest']->company->name : ($guest['guest']->segmentasi_rate_code == 7 ? '[WALK IN GUEST]' : '[INDIVIDUAL RESERVATION]')}} {{config('custom.segment_ratecodes')[$guest['detail']->segment_rate_code_drop_id]}}
Total Breakfast | Room/Pax {{$total_room_have_breakfast}}/{{$total_breakfast}}

No Data

@endsection @section('js') @endsection