@extends('layouts.app') @section('title', 'Update Rates — Calendar') @push('styles') @endpush @section('content') @php $selectedRoomId = $calendar['selectedRoomId'] ?? null; $prevMonth = \Carbon\Carbon::parse($month)->subMonth()->format('Y-m'); $nextMonth = \Carbon\Carbon::parse($month)->addMonth()->format('Y-m'); $currency = $hotel->currency ?? 'USD'; $currencySymbol = match ($currency) { 'USD' => '$', 'EUR' => '€', 'GBP' => '£', default => $currency.' ', }; @endphp

Channel Manager Calendar View

Overall @if(count($calendar['rooms'])) Single room @endif
@if($selectedRoomId && count($calendar['rooms']) > 1) @endif

{{ $calendar['monthLabel'] }}

@foreach(['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] as $dow) @endforeach @foreach($calendar['weeks'] as $week) @foreach($week as $day) @endforeach @endforeach
{{ $dow }}
{{ $day['day'] }} @if($day['inMonth'])
@if($day['price'] !== null) {{ $currencySymbol }}{{ number_format($day['price'], 0) }} @endif {{ $day['available'] }} ({{ number_format($day['occupancy'], 0) }}%)
@endif
@include('hotel.channel-manager.partials.calendar-day-modal') @endsection @push('scripts') @endpush