{{ session('error_alert') }}
@endif
: Longstay
: Dayuse
: Cancel
@if(\Auth::user()->role == 10)
@else
@endif
Expected Arrival
: {{ $expected_arrival }}
Expected Departure
: {{ $expected_departure }}
Departure
: {{ $departure }}
In House
: {{ $in_house }}
{{-- not used since 17 may 2022 --}}
{{--
By booker:
--}}
@if(false)
@if($booking_details)
@foreach($booking_details as $idx => $detail)
@if ($detail->array_sub == 0 || $detail->array_sub_extend_stay == 0)
@if ($detail->extend_stay === 0)
@continue
@endif
@php
// Global Variable This Invoice
$bill_room = $detail->altInvoice($detail->room_index)->first();
$color_card = '';
// ambil class css
if ($detail->status_booking == 13) {
$color_card = 'canceled';
}else{
if ( $detail->jumlah_malam > 7) {
$color_card = 'longstay';
}elseif ( $detail->jumlah_malam < 1) {
$color_card = 'dayuse';
}
}
if (@$detail->booking->status_ota) {
$color_card = 'canceled';
}
@endphp
@php
$balance_total = getTotalTagihan($detail->booking_id, $detail->room_index, $detail->nomor_kamar, 'checkout');
$balance_total_dayuse = getTotalTagihan($detail->booking_id, $detail->room_index, $detail->nomor_kamar, 'dayuse');
@endphp
{{-- BUTTON RC AND DEPOSIT --}}
@if ($detail)
{{-- BUTTON RC AND DEPOSIT --}}
@if ($detail)
@endif
{!! date('m-d', strtotime(@$detail->booking->guest->birth_date)) == date('m-d', strtotime(getSystemDate())) ? '' : '' !!}
{!! $detail->incognito == 1 ? '' : '' !!}
{!! @$detail->booking->reservationDeposit->count() > 0 && @$detail->booking->checkStatusReservation->count() < 1 && $detail->status_booking == 4 && @$detail->room_index == 1 ? '' : '' !!}
{{$detail->guest_room ? $detail->guest_room : @$detail->booking->nama}}
{!! $detail->incognito == 1 ? '(Incognito)' : '' !!}
{{-- add segmentasi --}}
- {{ !in_array(@$detail->booking->segmentasi_rate_code, [2,3,4,5,6,8,9]) ? config('custom.segment_ratecodes')[@$detail->booking->segmentasi_rate_code] : @$detail->booking->company->name }} {{@$detail->booking->group_name ? '('.@$detail->booking->group_name.')' : ''}}
@if (@$detail->booking->status_ota)
@endif
@if($detail->status_booking != 1 && $detail->status_booking != 2)
{!! @$detail->expected_arrival != "" ? ' Expected arrival: '.@$detail->expected_arrival->format('H:i:s').'' : '' !!}
@endif
@php $checkin = ''; $checkout = ''; // check day use or not if (@$detail->checkin && @$detail->checkout) { $checkin = formatDateAwal($detail->checkin); $checkout = formatDateAwal($detail->checkout); } else { $checkin = formatDateAwal($detail->start_date); $checkout = formatDateAwal($detail->end_date); } @endphp {{ $detail->booking->kode_booking }} ({{ config('custom.source')[@$detail->booking->source] }})
{{ $detail->booking->getCurrentRoom($detail->booking_id, $detail->room_index) }} - {{$detail->jns_kamar}} ({{ @$detail->pax }} Pax) @if ($detail->block_kamar == 1) @endif
{{ formatDate($checkin, "d-m-Y") }} - {{ formatDate($checkout, "d-m-Y") }}
@if(in_array(1, [$detail->status_booking])) In House @else {{@config('custom.status_booking')[$detail->status_booking]}} @endif {{-- --}} @php $balance_total = getTotalTagihan($detail->booking_id, $detail->room_index, $detail->nomor_kamar, 'totalroom'); // $balance_total = 0; @endphp {!! 'Rp '.ribuanWithComma($balance_total).'' !!} {{-- Arrangement --}} @if ($detail->arrangement_codes) {{ $detail->arrangement_codes }} @endif
@php $checkin = ''; $checkout = ''; // check day use or not if (@$detail->checkin && @$detail->checkout) { $checkin = formatDateAwal($detail->checkin); $checkout = formatDateAwal($detail->checkout); } else { $checkin = formatDateAwal($detail->start_date); $checkout = formatDateAwal($detail->end_date); } @endphp {{ $detail->booking->kode_booking }} ({{ config('custom.source')[@$detail->booking->source] }})
{{ $detail->booking->getCurrentRoom($detail->booking_id, $detail->room_index) }} - {{$detail->jns_kamar}} ({{ @$detail->pax }} Pax) @if ($detail->block_kamar == 1) @endif
{{ formatDate($checkin, "d-m-Y") }} - {{ formatDate($checkout, "d-m-Y") }}
@if(in_array(1, [$detail->status_booking])) In House @else {{@config('custom.status_booking')[$detail->status_booking]}} @endif {{-- --}} @php $balance_total = getTotalTagihan($detail->booking_id, $detail->room_index, $detail->nomor_kamar, 'totalroom'); // $balance_total = 0; @endphp {!! 'Rp '.ribuanWithComma($balance_total).'' !!} {{-- Arrangement --}} @if ($detail->arrangement_codes) {{ $detail->arrangement_codes }} @endif
@if ($detail->status_booking)
{{-- @if ($booking->reservationDeposit) --}}
{{--
--}}
{{-- @endif --}}
@endif
@endif
@endif
@endforeach
@else
@foreach($booking_details as $idx => $detail)
@if ($detail->array_sub == 0 || $detail->array_sub_extend_stay == 0)
@if ($detail->extend_stay === 0)
@continue
@endif
@php
// Global Variable This Invoice
$bill_room = $detail->altInvoice($detail->room_index)->first();
$color_card = '';
// ambil class css
if ($detail->status_booking == 13) {
$color_card = 'canceled';
}else{
if ( $detail->jumlah_malam > 7) {
$color_card = 'longstay';
}elseif ( $detail->jumlah_malam < 1) {
$color_card = 'dayuse';
}
}
if (@$detail->booking->status_ota) {
$color_card = 'canceled';
}
@endphp
{!! date('m-d', strtotime(@$detail->booking->guest->birth_date)) == date('m-d', strtotime(getSystemDate())) ? '' : '' !!}
{!! $detail->incognito == 1 ? '' : '' !!}
{!! @$detail->booking->reservationDeposit->count() > 0 && @$detail->booking->checkStatusReservation->count() < 1 && $detail->status_booking == 4 && @$detail->room_index == 1 ? '' : '' !!}
{{$detail->guest_room ? $detail->guest_room : @$detail->booking->nama}}
{!! $detail->incognito == 1 ? '(Incognito)' : '' !!}
@if (@$detail->booking->status_ota)
@endif
@if($detail->status_booking != 1 && $detail->status_booking != 2)
{!! $detail->expected_arrival != "" ? ' Expected arrival: '.$detail->expected_arrival->format('H:i:s').'' : '' !!}
@endif
{{$detail->nomor_kamar ?? 'Belum Ada Kamar'}} - {{$detail->jns_kamar}}
@if(in_array(1, [$detail->status_booking])) In House @else {{@config('custom.status_booking')[$detail->status_booking]}} @endif @if ($bill_room) {!! 'Rp 0' !!} {{-- Arrangement --}} @if ($detail->arrangement_codes) {{ $detail->arrangement_codes }} @endif @endif
{{$detail->nomor_kamar ?? 'Belum Ada Kamar'}} - {{$detail->jns_kamar}}
@if(in_array(1, [$detail->status_booking])) In House @else {{@config('custom.status_booking')[$detail->status_booking]}} @endif @if ($bill_room) {!! 'Rp 0' !!} {{-- Arrangement --}} @if ($detail->arrangement_codes) {{ $detail->arrangement_codes }} @endif @endif
@if ($detail->status_booking)
{{-- @if ($booking->reservationDeposit) --}}
{{--
--}}
{{-- @endif --}}
@endif
@endif
@endif
@endforeach
@endif
@else
No Data Found
{{-- @foreach(config('custom.status_booking') as $key => $val)
@if(!in_array($key, [9,10,11,3,4]))
@endforeach
--}}
{{--
{{\Auth::user()->role == 10 ? $val : substr($val, 0, 14).'..'}}
--}}
{{-- {{$val}}
@endif
@endforeach --}}
@foreach(config('custom.status_kamar') as $key => $val)
@php
if($key != 'VC'){
if(in_array($key, ['OOO', 'OS'])){
$class_this = 'text-secondary';
}else{
$class_this = 'text-danger';
}
}else{
$class_this = 'text-success';
}
@endphp
{{$key}}: {{$val}}
{{-- -------------- --}}
{{-- FRONTDESK / FO --}}
{{-- -------------- --}}
@if(in_array(\Auth::user()->role, [10,30]))
@if(count($kamars) > 0)
@foreach($kamars as $key => $val)
@endforeach
@else
@endif
@else
@if(null != \Session::get('hotel_id'))
@if(count($kamars) > 0)
@foreach($kamars as $key => $val)
@endforeach
@else
@endif
@else
@if(null != \Session::get('hotel_id'))
@if(count($kamars) > 0)
@foreach($kamars as $key => $val)
{{--
--}}
@endforeach
@else
@endif
@else
@endif
@endif
@endif
{{tanggalIndo(getSystemDate())}}
Belum Ada Data Kamar
{{tanggalIndo(getSystemDate())}}
Belum Ada Data Kamar [ + Tambahkan ]
{{tanggalIndo(getSystemDate())}}
Lantai {{$key}}
Belum Ada Data Kamar [ + Tambahkan ]
Hotel belum dipilih