@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
| {{ $dow }} | @endforeach
|---|
|
{{ $day['day'] }}
@if($day['inMonth'])
@if($day['price'] !== null)
{{ $currencySymbol }}{{ number_format($day['price'], 0) }}
@endif
{{ $day['available'] }} ({{ number_format($day['occupancy'], 0) }}%)
@endif
|
@endforeach