@extends('layouts.app')
@section('title', 'Hostel Dashboard')
@section('content')
Hostel Dashboard
Buildings
{{ $stats['buildings'] }}
Total Beds
{{ $stats['total_beds'] }}
Occupied
{{ $stats['occupied_beds'] }}
@forelse($hostels as $hostel)
{{ $hostel->name }} ({{ $hostel->gender }}) — Warden: {{ $hostel->warden->user->name ?? 'Not assigned' }}
| Room | Occupied | |
@forelse($hostel->rooms as $room)
| {{ $room->room_number }} |
{{ $room->allocations->count() }} / {{ $room->bed_capacity }} |
View |
@empty
| No rooms yet. |
@endforelse
@empty
No hostels set up yet.
@endforelse
@endsection