@extends('layouts.main') @section('title', 'Calendar view') @section('css') @endsection @section('nav') @include('layouts.nav') @endsection @section('content') @if (\Session::has('success'))
@endif @if (\Session::has('error'))
@endif
{!! Form::open(['url' => url('calendar-view'), 'method' => 'get']) !!}

{{ __('calendar.from') }}

{{ __('calendar.through') }}

{!! Form::close() !!}
{!! Form::open([ 'url' => 'date-range-selector', 'method' => 'get', 'id' => 'date-range' ]) !!}

{{ __('calendar.date range') }}

{!! Form::close() !!}

{{ __('calendar.set_local_ratio') }}

  • Bookable
  • * Has restrictions
  • Closed
  • ! Sold out
  • No room/price

The Base price does not include any loyalty programs such as Genius from Booking.com, MOD from Expedia etc.

@foreach($roomData as $data) @foreach($data as $room) @if(($room->roomtype_id !== 353))
@if($room->display_name === NULL) {{ $room->roomtype->name }} @else {{ $room->display_name }} @endif {{--{{ $ratePlan->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->date->format('d') == 01)
{{ $date->date->format('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->date->format('D') }} {{ $date->date->format('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--}} {{-- @if($isMasterAdminUser == true)--}} {{--
--}}{{--OTAroomstosell--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- OTA Rooms To Sell--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- OTA Rooms To Sell--}} {{-- --}} {{--
--}} {{--
--}} {{-- @if(count($room->ratePlans) > 0)--}} {{-- @foreach($room->ratePlans[0]->occupancies[0]->prices as $date)--}} {{--
--}} {{--
--}} {{-- 1--}} {{-- --}} {{--
--}} {{--
--}} {{-- @endforeach--}} {{-- @endif--}} {{-- @endif--}} {{--
--}}{{--.OTAroomstosell--}} {{-- @if($isMasterAdminUser == true)--}} {{--
--}}{{--OTAopenrooms--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- OTA Open Rooms--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- OTA Open Rooms --}} {{-- Edit--}} {{-- --}} {{--
--}} {{--
--}} {{-- @if(count($room->ratePlans) > 0)--}} {{-- @foreach($room->ratePlans[0]->occupancies[0]->prices as $date)--}} {{--
--}} {{--
--}} {{-- 1--}} {{-- --}} {{--
--}} {{--
--}} {{-- @endforeach--}} {{-- @endif--}} {{-- @endif--}} {{--
--}}{{--.OTAopenrooms--}} {{--
--}}{{--ota-open rooms--}} {{-- @if($isMasterAdminUser == true)--}} {{--
--}}{{--otaproduction--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- OTA Booked Rooms--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- OTA 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 && 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]; @endphp
Selling Price x 2 Edit
Selling Price {{ $ratePlan->rateCode->code }} x {{ $occupancy->accomadates }} @if(isset($isEditableForThisUser) && $isEditableForThisUser) Edit @endif
@if(count($occupancy->prices) > 0) @foreach($occupancy->prices as $date)
{{ $date->editable_price }} isEditable ? '' : 'disabled' }} >
@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) {{ $room->roomtype->name }} @else {{ $room->display_name }} @endif {{--{{ $ratePlan->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->date->format('d') == 01)
{{ $date->date->format('M Y') }}
@else
@endif @endforeach @endif
@if(count($room->ratePlans) > 0) @foreach($room->ratePlans[0]->occupancies[0]->prices as $date)
{{ $date->date->format('D') }} {{ $date->date->format('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 {{ $ratePlan->rateCode->code }} x {{ $occupancy->accomadates }} @if(isset($isEditableForThisUser) && $isEditableForThisUser) Edit @endif
@if(count($occupancy->prices) > 0) @foreach($occupancy->prices as $date)
{{ $date->editable_price }} isEditable ? '' : 'disabled' }} >
@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--}}
{!! Form::open(['url' => 'update/rooms/to/sell', 'method' => 'post']) !!} {!! Form::close() !!} {!! Form::open(['url' => 'update/rooms/to/sell/flexi', 'method' => 'post']) !!} {!! Form::close() !!} {!! Form::open(['url' => 'update/open/rooms', 'method' => 'post']) !!} {!! Form::close() !!} {!! Form::open([ 'url' => url('open/close/room/single/date'), 'method' => 'post', 'id' => 'day-block-form']) !!} {!! Form::close() !!} {!! Form::open([ 'url' => url('price/update'), 'method' => 'post', 'id' => 'day-price-form']) !!} {!! Form::close() !!} @endsection @section('scripts') @endsection