@extends('layouts.app') @section('title', 'Chambres') @section('content')

Chambres

Gérez les chambres répertoriées dans votre établissement.

Ajouter une chambre
@forelse($rooms as $room) @empty @endforelse
NOM TYPE CAPACITÉ LITS PRIX ACTIF STATUT ACTIONS
{{ $room->name }} {{ $room->type === 'private' ? 'Privée' : 'Dortoir' }}
{{ $room->capacity }}
{{ $room->beds_count }}
@if($room->prices->where('is_active', true)->first()) {{ number_format($room->prices->where('is_active', true)->first()->price_amount, 3) }} {{ $room->prices->where('is_active', true)->first()->currency }} @else @endif @php $statusClasses = [ 'active' => 'bg-[#ECFDF5] text-[#059669] border border-[#A7F3D0]', 'maintenance' => 'bg-[#FEF3C7] text-[#D97706] border border-[#FDE68A]', 'inactive' => 'bg-[#FEF2F2] text-[#DC2626] border border-[#FECACA]' ]; $statusLabels = [ 'active' => 'Actif', 'maintenance' => 'En maintenance', 'inactive' => 'Inactif' ]; @endphp {{ $statusLabels[$room->status] ?? ucfirst($room->status) }}
🚪
Vous n'avez pas encore configuré de chambres.
Créer votre première chambre
@include('partials.delete-script') @endsection