Dispay Filter:
@if ($filter_type_display == 2)
Date Range:
@elseDate:
@endif --}}
{{--
--}}
No | Date | RmNo | Argt | RCode | Curr | Room Rate | Pax | Com | Lodging | @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) --}}Total Arrangement (Breakfast, etc.) |
{{-- @php
$colspan_summary++
@endphp
@endforeach --}}
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 | {{-- Com --}}@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 : '' }} | {{-- Lodging --}}@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 $total_arrangement = 0; @endphp {{-- @foreach(config('custom.revenue_groups') as $key => $revenue_group) --}}@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)}} | {{-- @endforeach --}}@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) }} | {{-- Com --}}{{ ribuanWithComma($summary_lodging) }} | {{-- Lodging --}} {{-- @foreach(config('custom.revenue_groups') as $key => $revenue_group) --}}{{ ribuanWithComma($summary_arrangement) }} | {{-- @endforeach --}}{{ ribuanWithComma($summary_total_rate) }} |