@extends('layouts/contentNavbarLayout') @section('title', 'Dashboard - Admin') @section('vendor-style') @vite(['resources/assets/vendor/libs/apex-charts/apex-charts.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/apex-charts/apexcharts.js']) @endsection @section('page-script') @vite(['resources/assets/js/admin-dashboard.js']) @endsection @section('content')
{{-- Welcome header --}}

Welcome back, Admin

Today, {{ $today }}

Students Reports
{{-- KPI Cards --}}

Today & All Registration

{{ $registeredToday }} / {{ $allStudentsCount }}

Active / Total Students

{{ $activeStudents }} / {{ $totalStudents }}

{{ $occupancyRate }}% rooms occupied

Today's & Total Expense

{{ number_format($todayExpense, 0) }} / ₹{{ number_format($totalExpenseAll, 0) }}

Vacant Beds

{{ $availableBeds }} / {{ $totalBeds }}

{{ $occupancyPercent }}% occupancy
{{-- Quick actions + Collection MTD --}}
Collection MTD ₹ {{ number_format($collectionMtd ?? 0, 2) }}
{{-- Charts row --}}
Occupancy Overview
{{ $occupancyPercent }}%
Collection vs Expense (Last 6 Months)

Values in ₹ thousands

{{-- Advanced Financial Matrix + Room overview --}}
Advanced Financial Matrix
to
@foreach ($collectionDetails as $i => $row) @endforeach
# Total Cash Bank
{{ $row['label'] }} ₹{{ number_format($row['total'], 2) }} ₹{{ number_format($row['cash'], 2) }} ₹{{ number_format($row['bank'], 2) }}
Room Overview

Availability & vacant beds

@foreach ($floors as $floor)
{{ $floor['name'] }}
@foreach ($floor['rooms'] as $room) @php $beds = $room['beds']; $total = count($beds); $occupied = count(array_filter($beds, fn($b) => !$b)); $pct = $total ? round(($occupied / $total) * 100) : 0; @endphp
Room {{ $room['number'] }} {{ $occupied }}/{{ $total }}
@foreach ($beds as $available) @endforeach
@endforeach
@endforeach
{{-- Add Enquiry Modal (dashboard) --}} {{-- Footer --}}
© {{ date('Y') }} Shri Gurudev Hostel. All rights reserved.
@endsection