@extends('layouts.admin') @section('title', $resort->name.' — '.$room->name) @section('content') @include('admin.resorts.errors')

All end dates are exclusive: a block ending on 13 October blocks nights up to 12 October. Default inventory: {{ $resort->availability_mode === 'ALLOCATED_INVENTORY' ? $room->allocated_rooms : $room->total_rooms }} rooms.

@foreach(['inventory' => 'Date Inventory / Stop Sell', 'rates' => 'Nightly Rates', 'blocks' => 'Room Blocks'] as $kind => $title)
{{ $title }}
@csrf
@if($kind === 'inventory')
@else @foreach(['start_date', 'end_date'] as $key)
@endforeach @if($kind === 'blocks')
@else
@if($costAccess)
@endif
Weekdays (none = every day): @foreach(['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] as $number => $day)@endforeach
@endif @endif
@foreach($$kind as $entry)@endforeach
Date(s)Details
{{ $entry->date ?? $entry->start_date }} @if(isset($entry->end_date)) → {{ $entry->end_date }} @endif@if($kind === 'inventory')Quantity: {{ $entry->quantity ?? 'Default' }} / Stop Sell: {{ $entry->stop_sell ? 'Yes' : 'No' }} @elseif($kind === 'blocks'){{ $entry->quantity }} rooms / {{ $entry->reason }} @else {{ $entry->name }} / {{ $entry->selling_price }} / Priority {{ $entry->priority }} @if($costAccess) / Cost {{ $entry->cost_price ?? 'Default' }} @endif @endif@if($kind !== 'inventory')
@csrf @method('DELETE')
@else Save the same date to replace this override. @endif
@endforeach @endsection