@extends('backend.partials.master') @section('title') {{ ___('admin.availability_681b5b') }} @endsection @section('maincontent') @foreach($rooms as $r) @php $occupied = max(0, $r->total_rooms - $r->available_rooms); $c = $r->available_rooms === 0 ? 'danger' : ($r->available_rooms <= 5 ? 'warning' : 'success'); $label = $r->available_rooms === 0 ? 'Full' : ($r->available_rooms <= 5 ? 'Low' : 'Available'); @endphp {{ $r->hotel?->name ?? '—' }} {{ $r->hotel?->city ?? '—' }} {{ $r->room_type }} {{ $r->total_rooms }} {{ $r->available_rooms }} {{ $occupied }} {{ currency_symbol() }}{{ number_format($r->rate_per_night) }} {{ admin_label($label) }} @endforeach @endsection