@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; @endphp

Building and floor are both optional — a school with a single building can leave every room's building blank, and floor is a free-text label (e.g. "Ground", "2nd Floor") for schools that use one.

@forelse($rooms as $room) @empty @endforelse
# Name Building Floor Branch Capacity Sections Using It
{{ $loop->iteration }} {{ $room->name }} {{ $room->building?->name ?? '—' }} {{ $room->floor ?? '—' }} {{ $room->branch->name }} {{ $room->capacity ?? '—' }} {{ $sectionCounts[$room->id] ?? 0 }}
No rooms yet. Add your first one.
@csrf

Buildings are optional — only add them if your school has more than one. Rooms can be assigned to a building from the Room form.

@forelse($buildings as $building) @empty @endforelse
Name Branch Rooms
{{ $building->name }} {{ $building->branch->name }} {{ $roomCounts[$building->id] ?? 0 }}
No buildings yet.
@csrf
@csrf @method('PUT')