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

Dispay Filter:

@if ($filter_type_display == 2)

Date Range:

@else

Date:

@endif
 
{{--
@csrf
--}}
{{--
--}} @php $colspan_summary = 0; $summary_room_rate = 0; $summary_pax = 0; $summary_com = 0; $summary_lodging = 0; $summary_arrangement = 0; $summary_total_rate = 0; $summary_total_room = 0; @endphp {{-- @foreach(config('custom.revenue_groups') as $revenue_group) --}} {{-- @php $colspan_summary++ @endphp @endforeach --}} {{-- @foreach($bookings as $booking) --}} @foreach($booking_details as $booking_detail) @php $booking = $booking_detail->booking; $summary_total_room +=1; @endphp {{-- Com --}} {{-- Lodging --}} @php $total_arrangement = 0; @endphp {{-- @foreach(config('custom.revenue_groups') as $key => $revenue_group) --}} {{-- @endforeach --}} @endforeach {{-- @endforeach --}} {{-- --}} {{-- Com --}} {{-- Lodging --}} {{-- @foreach(config('custom.revenue_groups') as $key => $revenue_group) --}} {{-- @endforeach --}}
No Date RmNo Argt RCode Curr Room Rate Pax Com LodgingTotal Arrangement
(Breakfast, etc.)
Total Rate Arrival Depart BillNum Reservation Name Guest Name
{{ $loop->iteration }} {{ $booking_detail->date_now }} {{$booking_detail->nomor_kamar}} {{$booking_detail->arrangement_codes}} {{$booking_detail->rate_codes}} Rp @php $total_arr_sum = 0; if (isset($_GET['excludeBtn'])) { $total_arr_sum += @$booking_detail->per_item_arr; }else{ $total_arr_sum += @$booking_detail->per_item_arr + @$booking_detail->per_item_arr_services + @$booking_detail->per_item_arr_tax; } @endphp @if(isset($_GET['excludeBtn'])) @if (in_array(@$booking_detail->rate_code->segment_ratecode, [10, 11])) {{ribuanWithComma(0)}} @php $summary_room_rate += 0 @endphp @else {{ribuanWithComma($booking_detail->per_item_real + $total_arr_sum)}} @php $summary_room_rate += $booking_detail->per_item_real + $total_arr_sum @endphp @endif @else {{ribuanWithComma($booking_detail->per_item)}} @php $summary_room_rate += $booking_detail->per_item @endphp @endif {{$booking_detail->pax}} @php $summary_pax += $booking_detail->pax @endphp @php $summary_com += in_array(@$booking_detail->rate_code->segment_ratecode, [10, 11]) ? 1 : 0; @endphp {{ in_array(@$booking_detail->rate_code->segment_ratecode, [10, 11]) ? 1 : '' }} @if(isset($_GET['excludeBtn'])) @php if (in_array(@$booking_detail->rate_code->segment_ratecode, [10, 11])) { $lodging = 0; }else{ $lodging = $booking_detail->per_item_real; } $summary_lodging += $lodging; @endphp {{ ribuanWithComma( $lodging ) }} @else @php $lodging = ($booking_detail->per_item_real + $booking_detail->per_item_tax + $booking_detail->per_item_services); $summary_lodging += $lodging; @endphp {{ ribuanWithComma( $lodging ) }} @endif @php if (in_array(@$booking_detail->rate_code->segment_ratecode, [10, 11])) { }else { if (isset($_GET['excludeBtn'])) { $summary_arrangement += @$booking_detail->per_item_arr; $total_arrangement += @$booking_detail->per_item_arr; }else { $summary_arrangement+= @$booking_detail->per_item_arr + @$booking_detail->per_item_arr_services + @$booking_detail->per_item_arr_tax; $total_arrangement += @$booking_detail->per_item_arr + @$booking_detail->per_item_arr_services + @$booking_detail->per_item_arr_tax; } } @endphp {{@ribuanWithComma(@$total_arrangement)}} @if(isset($_GET['excludeBtn'])) @php if (in_array(@$booking_detail->rate_code->segment_ratecode, [10, 11])) { $summary_total_rate += 0; }else{ $summary_total_rate += $booking_detail->per_item_real + $total_arrangement; } @endphp @if (in_array(@$booking_detail->rate_code->segment_ratecode, [10, 11])) {{ ribuanWithComma(0) }} @else {{ ribuanWithComma($booking_detail->per_item_real + $total_arrangement) }} @endif @else @php $summary_total_rate += $booking_detail->per_item; @endphp {{ ribuanWithComma($booking_detail->per_item) }} @endif {{-- {{ formatDate($booking_detail->checkin ?? $booking_detail->start_date) }}
--}} {{$booking_detail->checkin_real ? dateFormat($booking_detail->checkin_real, 'd-m-Y H:i:s') : ($booking_detail->checkin ? $booking_detail->checkin->format('d-m-Y H:i:s') : '-')}}
{{-- {{ formatDate($booking_detail->checkout ?? $booking_detail->end_date) }}
--}} {{$booking_detail->checkout_real ? dateFormat($booking_detail->checkout_real, 'd-m-Y H:i:s') : ($booking_detail->checkout ? $booking_detail->checkout->format('d-m-Y H:i:s') : '-')}}
@if (array_key_exists($booking_detail->booking_id,$invoice_array)) @if (array_key_exists($booking_detail->room_index,$invoice_array[$booking_detail->booking_id])) {{ $invoice_array[$booking_detail->booking_id][$booking_detail->room_index]->no_invoice }} @else - @endif @else - @endif {{ $booking->title ? $booking->title.' ' : '' }}{{ $booking->nama }} {{ $booking->company ? @$booking->company->name : ($booking_detail->guest_room ?? $booking->nama) }}{{ $booking->company ? ', '.@$booking->company->comp_title : '' }}
SUMMARY
SUMMARY
{{$summary_total_room}} Rp {{ ribuanWithComma($summary_room_rate) }} {{ ribuanWithComma($summary_pax) }} {{ ribuanWithComma($summary_com) }}{{ ribuanWithComma($summary_lodging) }} {{ ribuanWithComma($summary_arrangement) }} {{ ribuanWithComma($summary_total_rate) }}
{{--
--}}
@endsection @section('js') @endsection