@extends('backend.partials.master') @section('title') {{ ___('admin.room_rates') }} @endsection @section('maincontent') @php $canEdit = hasPermission('hotel_update'); $dayNames = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; @endphp

{{ ___('admin.room_rates_help', ['base' => currency_symbol() . number_format((float) $room->rate_per_night, 2)]) }}

@if($canEdit)
{{ ___('admin.room_rates_set') }}
@csrf @method('PUT')
{{ ___('admin.room_rates_days') }} @foreach($dayNames as $i => $d)@endforeach {{ ___('admin.room_rates_days_help') }}
@foreach(['from','to','rate','allotment','min_stay'] as $f) @error($f){{ $message }}@enderror @endforeach
@endif
{{ ___('admin.room_rates_next') }}
@foreach($days as $day) @php $r = $rates[$day->toDateString()] ?? null; @endphp $r?->stop_sell])> @endforeach
{{ ___('label.date') }}{{ ___('admin.room_rate_night') }}{{ ___('admin.room_allotment') }}{{ ___('admin.room_min_stay') }}
{{ $dayNames[$day->dayOfWeek] }} {{ $day->format('d M Y') }} {{ currency_symbol() }}{{ number_format((float) ($r?->rate ?? $room->rate_per_night), 2) }}@if($r?->rate !== null) {{ ___('admin.room_rate_custom') }}@endif {{ $r?->allotment ?? '—' }} {{ $r?->min_stay ?? '—' }} @if($r?->stop_sell){{ ___('admin.room_stop_sell') }}@endif
@endsection