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

Date:

Filter:

{{-- --}}
@php $no = 1; $total_breakfast = 0; $total_room_have_breakfast = 0; @endphp @if (count($guests) > 0) @foreach($guests as $key => $guest) @php $no++; @endphp @endforeach {{-- --}} @else @endif
No Reservation No Room Number Name Arrival Date Night Departure Date Qty RmType Adult Reservation Status Arrangement RmRate Arrival Time Departure Time Segment Remark
{{$no}} {{$guest['guest']->kode_booking}} {{$guest['detail']->nomor_kamar}} {{strtoupper($guest['guest']->title)}} {{$guest['guest']->nama}} {{$guest['detail']->start_date->format('d-m-Y')}} @php $cal_jumlah_malam = abs(strtotime($guest['detail']->end_date) - strtotime($guest['detail']->start_date)); $years = floor($cal_jumlah_malam / (365*60*60*24)); $months = floor(($cal_jumlah_malam - $years * 365*60*60*24) / (30*60*60*24)); $days = floor(($cal_jumlah_malam - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); @endphp {{$days}} {{$guest['detail']->end_date->format('d-m-Y')}} @php $a=1; // foreach ($guest['guest']->bookingDetails as $key => $value) { // if ($value->array_sub == 0 ) { // $a += 1; // } // } @endphp {{$a}} {{ 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']->pax}} @if(array_key_exists($guest['detail']->rate_codes, $room_breakfast)) @if($room_breakfast[$guest['detail']->rate_codes] != "") @php $total_breakfast += $guest['detail']->pax @endphp @endif @endif {{config('custom.status_booking')[$guest['detail']->status_booking]}} {{$guest['detail']->arrangement_codes}} {{ribuanWithComma($guest['detail']->per_item)}} @php if ($guest['detail']->checkin) { $start = dateFormat($guest['detail']->checkin, 'H:m:s'); } else { // $start = dateFormat($guest['guest']->start_date, 'H:m:s'); // ambil expected arrival as of 05/18 $start = dateFormat($guest['detail']->expected_arrival, 'H:m:s'); } @endphp {{$start}} @php if ($guest['detail']->checkout) { $end = dateFormat($guest['detail']->checkout, 'H:m:s'); } else { // jadi - as of 08/06 $end = '-'; // $end = dateFormat($guest['detail']->end_date, 'H:m:s'); // $end = date('d-m-Y', strtotime($guest['guest']->end_date)); } @endphp {{$end}} {{config('custom.segment_ratecodes')[$guest['guest']->segmentasi_rate_code]}} {!!$guest['guest']->ket_pembayaran ?? '-'!!}
Total Breakfast | Room/Pax {{$total_room_have_breakfast}}/{{$total_breakfast}}

No Data

@endsection @section('js') @endsection