@extends('layouts.app') @section('title', 'Update Rates') @push('styles') @endpush @section('content')

Channel Manager Update Rates

@csrf
Calendar View
@if(empty($grid['roomGroups']))

No rate plans yet.

Add a room Set base prices
@else
@foreach($grid['dates'] as $date) @endforeach {{-- Dynamic Rates — dark row + toggles --}} @foreach($grid['dateKeys'] as $dateKey) @endforeach {{-- Available — green squares --}} @foreach($grid['dateKeys'] as $dateKey) @php $state = $grid['inventory']['isOpen'][$dateKey] ?? 'open'; @endphp @endforeach {{-- Available Rooms (Occupancy %) --}} @foreach($grid['dateKeys'] as $dateKey) @endforeach @foreach($grid['roomGroups'] as $roomGroup) @foreach($grid['dateKeys'] as $dateKey) @endforeach @foreach($roomGroup['rate_plans'] as $plan) @foreach($grid['dateKeys'] as $dateKey) @php $amount = $plan['display_rates'][$dateKey] ?? null; @endphp @endforeach @endforeach @endforeach
« »
{{ $date->format('D') }} {{ $date->format('d M') }}
Dynamic Rates
Available
Available Rooms (Occupancy %) {{ $grid['inventory']['totals'][$dateKey] ?? 0 }} ({{ number_format($grid['inventory']['occupancy'][$dateKey] ?? 0, 0) }} %)
{{ $roomGroup['name'] }}{{ $roomGroup['counts'][$dateKey] ?? 0 }}
{{ $plan['plan_label'] }}
@endif
@if(!empty($grid['roomGroups'])) @php $availabilityMeta = $grid['availabilityMeta'] ?? []; $returnView = 'grid'; $month = \Carbon\Carbon::parse($startDate)->format('Y-m'); @endphp @include('hotel.channel-manager.partials.rates-modals') @endif @endsection @push('scripts') @endpush