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

Hostel Dashboard

Buildings
{{ $stats['buildings'] }}
Total Beds
{{ $stats['total_beds'] }}
Occupied
{{ $stats['occupied_beds'] }}

Buildings & Rooms

Manage Buildings Allocate Student
@forelse($hostels as $hostel)
{{ $hostel->name }} ({{ $hostel->gender }}) — Warden: {{ $hostel->warden->user->name ?? 'Not assigned' }} @forelse($hostel->rooms as $room) @empty @endforelse
RoomOccupied
{{ $room->room_number }} {{ $room->allocations->count() }} / {{ $room->bed_capacity }} View
No rooms yet.
@empty

No hostels set up yet.

@endforelse
@endsection