@foreach($roomData as $data) @foreach($data as $room) @php $room = (object)$room; $roomtype = App\Roomtype::where('id',$room->roomtype_id)->first(); @endphp @if(($room->roomtype_id !== 353))
@if($room->display_name === NULL) {{ $roomtype->name }} @else {{ $room->display_name }} @endif {{--{{ $rateCode['code'] }}--}} (Room ID: {{ $room->id }})
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
@endforeach @endif
{{ $today->format('M Y') }}
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date) @if(date_format(date_create($date['date']['date']),'d') == 01)
{{ date_format(date_create($date['date']['date']),'M Y') }}
@else
@endif @endforeach @endif
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
{{ date_format(date_create($date['date']['date']),'D') }} {{ date_format(date_create($date['date']['date']),'d') }}
@endforeach @endif
Room Status
Room Status
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
@if( $date['indication'] == 'calendar-status--soldout calendar-status--actionable calendar-clickable-item') ! @endif
@endforeach @endif
{{--.room status--}}
{{--.rooms to sell--}}
Rooms to Sell
Rooms to Sell Edit
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif
{{--.rooms to sell--}} @if($isMasterAdminUser == true)
{{--.open rooms--}}
Open Rooms
Open Rooms Edit
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif @endif
{{--.open rooms--}} @if($isMasterAdminUser == true)
{{--production--}}
Booked Rooms
Booked Rooms
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif @endif
{{--.production--}}
Standard Rate
Standard Rate
@if(count($room->ratePlans) > 0 && count($room->ratePlans[0]['occupancies'])) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
@endforeach @endif
@foreach($occupancySort_coll[$loop->parent->index] as $occupancySort_key) @php $ratePlan= $room->ratePlans[$occupancySort_key['ratePlan_id']]; $occupancy=$ratePlan['occupancies'][$occupancySort_key['occu_id']]; $rateCode = App\Ratecode::where('id',$ratePlan['ratecode_id'])->first(); @endphp
Selling Price x 2 Edit
Selling Price {{ $rateCode->code }} x {{ $occupancy['accomadates'] }} @if(isset($isEditableForThisUser) && $isEditableForThisUser) Edit @endif
@if(count($occupancy['prices']) > 0) @foreach($occupancy['prices'] as $date)
{{ $date['editable_price'] }}
@endforeach @else

Selected dates are empty for this room type.

@endif
Base Price + Tax x 2
Base Price + Tax x {{ $occupancy['accomadates'] }}
@foreach($occupancy['prices'] as $date)
{{ $date['non_editable_price'] }}
@endforeach
@if($isEditableForThisUser==true)
Base Price + Commission x 2
Base Price + Commission x {{ $occupancy['accomadates'] }}
@foreach($occupancy['prices'] as $date)
{{ $date['commisionableAmount'] }}
@endforeach
@endif @endforeach
@endif @if($room->roomtype_id === 353)
@if($room->display_name === NULL) {{ $roomtype->name }} @else {{ $room->display_name }} @endif {{--{{ $rateCode['code'] }}--}} (Room ID: {{ $room->id }})
@if(count($room->ratePlans) > 0 ) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
@endforeach @endif
{{ $today->format('M Y') }}
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date) @if(date_format(date_create($date['date']['date']),'d') == 01)
{{ date_format(date_create($date['date']['date']),'M Y') }}
@else
@endif @endforeach @endif
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
{{ date_format(date_create($date['date']['date']),'D') }} {{ date_format(date_create($date['date']['date']),'d') }}
@endforeach @endif
Room Status
Room Status
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
@if( $date['indication'] == 'calendar-status--soldout calendar-status--actionable calendar-clickable-item') ! @endif
@endforeach @endif
{{--.room status--}}
{{--.rooms to sell--}}
Rooms to Sell
Rooms to Sell Edit (9am - 6pm)
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif
{{--.rooms to sell--}} @if($isMasterAdminUser == true)
{{--.open rooms--}}
Open Rooms
Open Rooms {{-- Edit--}} (9am - 6pm)
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif @endif
{{--.open rooms--}}
{{--.rooms to sell.2--}}
Rooms to Sell
Rooms to Sell {{-- Edit--}} (8pm - 7am)
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif
{{--.rooms to sell--}} @if($isMasterAdminUser == true)
{{--.open rooms--}}
Open Rooms
Open Rooms {{-- Edit--}} (8pm - 7am)
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif @endif
{{--.open rooms--}} @if($isMasterAdminUser == true)
{{--production--}}
Booked Rooms
Booked Rooms
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
1
@endforeach @endif @endif
{{--.production--}}
Standard Rate
Standard Rate
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]['occupancies'][0]['prices'] as $date)
@endforeach @endif
@foreach($occupancySort_coll[$loop->parent->index] as $occupancySort_key) @php $ratePlan= $room->ratePlans[$occupancySort_key->ratePlan_id]; $occupancy=$ratePlan->occupancies[$occupancySort_key->occu_id]; @endphp
Selling Price x 2 Edit
Selling Price {{ $rateCode['code'] }} x {{ $occupancy['accomadates'] }} @if(isset($isEditableForThisUser) && $isEditableForThisUser) Edit @endif
@if(count($occupancy['prices']) > 0) @foreach($occupancy['prices'] as $date)
{{ $date['editable_price'] }}
@endforeach @else

Selected dates are empty for this room type.

@endif
Base Price + Tax x 2
Base Price + Tax x {{ $occupancy['accomadates'] }}
@foreach($occupancy['prices'] as $date)
{{ $date['non_editable_price'] }}
@endforeach
@if($isEditableForThisUser==true)
Base Price + Commission x 2
Base Price + Commission x {{ $occupancy['accomadates'] }}
@foreach($occupancy['prices'] as $date)
{{ $date['commisionableAmount'] }}
@endforeach
@endif @endforeach
@endif
@endforeach @endforeach {{--.calendar-matrix-container--}}
{{--.calendar-matrix-view--}}