{{--
|
--}}
@switch($type_detail)
@case('roomtype')
@foreach ($roomtypes as $key=>$roomtype)
@if ($key === 0)
Revenue |
@endif
{{$roomtype->nama}} {{$key == 0}} |
@foreach($periods as $period)
{{ array_key_exists($roomtype->id, $revenue) ? (array_key_exists($period, $revenue[$roomtype->id]) ? number_format($revenue[$roomtype->id][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$roomtype->id]['this_total_rev'], 2)}} |
@endforeach
@foreach ($roomtypes as $key=>$roomtype)
@if ($key === 0)
Occupancy(%) |
@endif
{{$roomtype->nama}} |
@foreach($periods as $period)
{{ array_key_exists($roomtype->id, $room_occupancy) ? (array_key_exists($period, $room_occupancy[$roomtype->id]) ? number_format($room_occupancy[$roomtype->id][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$roomtype->id]['this_total_room_occupancy'], 2)}} |
@endforeach
@foreach ($roomtypes as $key=>$roomtype)
@if ($key === 0)
Room Occupied |
@endif
{{$roomtype->nama}} |
@foreach($periods as $period)
{{ array_key_exists($roomtype->id, $room_occ) ? (array_key_exists($period, $room_occ[$roomtype->id]) ? number_format($room_occ[$roomtype->id][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$roomtype->id]['this_total_occ'], 2)}} |
@endforeach
@foreach ($roomtypes as $key=>$roomtype)
@if ($key === 0)
Room Available |
@endif
{{$roomtype->nama}} |
@foreach($periods as $period)
{{ array_key_exists($roomtype->id, $total_room_ava) ? (array_key_exists($period, $total_room_ava[$roomtype->id]) ? number_format($total_room_ava[$roomtype->id][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$roomtype->id]['this_total_room_ava'], 2)}} |
@endforeach
@foreach ($roomtypes as $key=>$roomtype)
@if ($key === 0)
Guest in house |
@endif
{{$roomtype->nama}} |
@foreach($periods as $period)
{{ array_key_exists($roomtype->id, $guest) ? (array_key_exists($period, $guest[$roomtype->id]) ? number_format($guest[$roomtype->id][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$roomtype->id]['this_total_guest'], 2)}} |
@endforeach
@foreach ($roomtypes as $key=>$roomtype)
@if ($key === 0)
Average Room Rate |
@endif
{{$roomtype->nama}} |
@foreach($periods as $period)
{{ array_key_exists($roomtype->id, $arr) ? (array_key_exists($period, $arr[$roomtype->id]) ? number_format($arr[$roomtype->id][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$roomtype->id]['this_total_arr'], 2)}} |
@endforeach
@foreach ($roomtypes as $key=>$roomtype)
@if ($key === 0)
RevPAR |
@endif
{{$roomtype->nama}} |
@foreach($periods as $period)
{{ array_key_exists($roomtype->id, $arr) ? (array_key_exists($period, $arr[$roomtype->id]) ? number_format($arr[$roomtype->id][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$roomtype->id]['this_total_revpar'], 2)}} |
@endforeach
@break
@case('roomnumber')
@foreach ($rooms as $key=>$room)
@if ($key === 0)
Revenue |
@endif
{{$room->no_kamar}} |
@foreach($periods as $period)
{{ array_key_exists($room->no_kamar, $revenue) ? (array_key_exists($period, $revenue[$room->no_kamar]) ? number_format($revenue[$room->no_kamar][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$room->no_kamar]['this_total_rev'], 2)}} |
@endforeach
@foreach ($rooms as $key=>$room)
@if ($key === 0)
Occupancy(%) |
@endif
{{$room->no_kamar}} |
@foreach($periods as $period)
{{ array_key_exists($room->no_kamar, $room_occupancy) ? (array_key_exists($period, $room_occupancy[$room->no_kamar]) ? number_format($room_occupancy[$room->no_kamar][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$room->no_kamar]['this_total_room_occupancy'], 2)}} |
@endforeach
@foreach ($rooms as $key=>$room)
@if ($key === 0)
Room Occupied |
@endif
{{$room->no_kamar}} |
@foreach($periods as $period)
{{ array_key_exists($room->no_kamar, $room_occ) ? (array_key_exists($period, $room_occ[$room->no_kamar]) ? number_format($room_occ[$room->no_kamar][$period]) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$room->no_kamar]['this_total_occ'])}} |
@endforeach
@foreach ($rooms as $key=>$room)
@if ($key === 0)
Room Available |
@endif
{{$room->no_kamar}} |
@foreach($periods as $period)
{{ array_key_exists($room->no_kamar, $total_room_ava) ? (array_key_exists($period, $total_room_ava[$room->no_kamar]) ? number_format($total_room_ava[$room->no_kamar][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$room->no_kamar]['this_total_room_ava'], 2)}} |
@endforeach
@foreach ($rooms as $key=>$room)
@if ($key === 0)
Guest in house |
@endif
{{$room->no_kamar}} |
@foreach($periods as $period)
{{ array_key_exists($room->no_kamar, $guest) ? (array_key_exists($period, $guest[$room->no_kamar]) ? number_format($guest[$room->no_kamar][$period]) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$room->no_kamar]['this_total_guest'])}} |
@endforeach
@foreach ($rooms as $key=>$room)
@if ($key === 0)
Average Room Rate |
@endif
{{$room->no_kamar}} |
@foreach($periods as $period)
{{ array_key_exists($room->no_kamar, $arr) ? (array_key_exists($period, $arr[$room->no_kamar]) ? number_format($arr[$room->no_kamar][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$room->no_kamar]['this_total_arr'], 2)}} |
@endforeach
@foreach ($rooms as $key=>$room)
@if ($key === 0)
RevPAR |
@endif
{{$room->no_kamar}} |
@foreach($periods as $period)
{{ array_key_exists($room->no_kamar, $revpar) ? (array_key_exists($period, $revpar[$room->no_kamar]) ? number_format($revpar[$room->no_kamar][$period], 2) : 0) : 0}} |
@endforeach
{{number_format($this_total_array[$room->no_kamar]['this_total_revpar'], 2)}} |
@endforeach
@break
@default
Revenue |
@foreach($periods as $period)
{{ array_key_exists($period, $revenue) ? number_format($revenue[$period], 2) : 0}} |
@endforeach
{{number_format($this_total_rev, 2)}} |
Occupancy(%) |
@foreach($periods as $period)
{{ array_key_exists($period, $room_occupancy) ? number_format($room_occupancy[$period], 2) : 0}} |
@endforeach
{{number_format($this_total_room_occupancy, 2)}}% |
Room Occupied |
@foreach($periods as $period)
{{ array_key_exists($period, $room_occ) ? number_format($room_occ[$period]) : 0}} |
@endforeach
{{number_format($this_total_occ)}} |
Room Available |
@foreach($periods as $period)
{{ array_key_exists($period, $total_room_ava) ? number_format($total_room_ava[$period], 2) : 0}} |
@endforeach
{{number_format($this_total_room_ava, 2)}} |
Guest in house |
@foreach($periods as $period)
{{ array_key_exists($period, $guest) ? number_format($guest[$period]) : 0}} |
@endforeach
{{number_format($this_total_guest)}} |
Average room rates |
@foreach($periods as $period)
{{ array_key_exists($period, $arr) ? number_format($arr[$period], 2) : 0}} |
@endforeach
{{number_format($this_total_arr, 2)}} |
RevPAR |
@foreach($periods as $period)
{{ array_key_exists($period, $revpar) ? number_format($revpar[$period], 2) : 0}} |
@endforeach
{{number_format($this_total_revpar, 2)}} |
@endswitch