@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Floorview') @section('css') @endsection @section('content')
@php $hotel_id = hotelID(); $hotel_only = in_array(propertiTipe(), [1]); $hotel_n_budget = in_array(propertiTipe(), [1,2]); $all = in_array(propertiTipe(), [1,2,3]); @endphp
@if (session('error_alert'))
{{ session('error_alert') }}
@endif
@if (strtotime(date('Y-m-d')) > strtotime(getSystemDate())) System date not updated as real time date, please run audit! @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
{!! 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
{{-- BUTTON RC AND DEPOSIT --}} @if ($detail)
@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
{{-- BUTTON RC AND DEPOSIT --}} @if ($detail)
@if ($detail->status_booking) {{-- @if ($booking->reservationDeposit) --}} {{--
--}} {{-- @endif --}} @endif
@endif @endif @endforeach @endif @else
@endif
    @php $last_page_custom = ($booking_details->currentPage() == $booking_details->lastPage() ? true : false); @endphp {{-- {!! $booking_details->links() !!} --}}
  • {{$booking_details->currentPage()}} / {{$booking_details->lastPage()}}
  • {{--
  • 1
  • 2
  • 3
  • 4
  • --}}
@csrf
@csrf
{{-- @foreach(config('custom.status_booking') as $key => $val) @if(!in_array($key, [9,10,11,3,4]))
    --}} {{--  {{\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}}
@endforeach
{{-- -------------- --}} {{-- 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) {{--
Lantai {{$key}}
--}} @endforeach @else
@endif @else
@endif
@endif @endif
{{-- -------------------------------------------------------------- Guest Profile -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Transaksi -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Deposit -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Draft Print Modal -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Wakeup Call -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Quick Booking -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Pembayaran + Refund -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Detail Kamar -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Transfer Bill -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Extend Stay -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal History Extend -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Update Status lock -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Cancel Reservation -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Pembayaran Day Use -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Refund Day Use -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Reservation Deposit Info -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Log File -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Remarks -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Room Revenue -------------------------------------------------------------- --}} {{-- Modal Room Availability --}} @endsection @section('js') {{-- Js Extend Stay --}} {{-- Js History Extend Stay --}} @endsection