Student Dashboard

@php $user = auth()->user(); $apps = $user->applications; $total = $apps->count(); $draft = $apps->where('status', 'draft')->count(); $pending = $apps->whereIn('status', ['submitted', 'under_review'])->count(); $approved = $apps->where('status', 'approved')->count(); $rejected = $apps->where('status', 'rejected')->count(); $recent = $apps->sortByDesc('created_at')->take(5); $firstName = explode(' ', $user->name)[0]; $hour = now()->hour; $greeting = $hour < 12 ? 'Good morning' : ($hour < 17 ? 'Good afternoon' : 'Good evening'); @endphp
{{-- Flash Message --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Welcome Banner --}}

{{ $greeting }},

{{ $firstName }}

{{ now()->format('l, F j, Y') }}  •  A. Santos Academic Trust Enrollment Portal

{{-- Stat Cards --}}

Total

{{ $total }}

Applications

Draft

{{ $draft }}

Incomplete

Pending

{{ $pending }}

Under Review

Approved

{{ $approved }}

Accepted

Rejected

{{ $rejected }}

Not Approved

{{-- Main Content + Sidebar --}}
{{-- Recent Applications --}}

Recent Applications

View all →
@forelse($recent as $app)

{{ $app->reference_number }}

{{ $app->course_applied }} • {{ $app->academic_year }}

@empty

No applications yet

Start your enrollment journey by submitting your first application.

Start Application
@endforelse
{{-- Sidebar --}}
{{-- Quick Actions --}} {{-- Status Guide --}}

Status Guide

@foreach([ ['label' => 'Draft', 'desc' => 'Not yet submitted', 'cls' => 'bg-gray-100 text-gray-600'], ['label' => 'Submitted', 'desc' => 'Awaiting initial review', 'cls' => 'bg-blue-100 text-blue-700'], ['label' => 'Under Review', 'desc' => 'Being processed by admin', 'cls' => 'bg-yellow-100 text-yellow-700'], ['label' => 'Approved', 'desc' => 'Application accepted', 'cls' => 'bg-green-100 text-green-700'], ['label' => 'Rejected', 'desc' => 'Application not approved', 'cls' => 'bg-red-100 text-red-700'], ] as $s)
{{ $s['label'] }} {{ $s['desc'] }}
@endforeach
{{-- Help Card --}}

Need Help?

Contact the admissions office for assistance with your application.

admissions@asat.edu.ph