@extends('layouts.app') @section('title', 'Dashboard') @section('content') @php $user = auth()->user(); $canViewStudents = $user?->hasPermission('students.view') ?? false; @endphp
{{ now()->format('l, j F Y') }}

Good {{ now()->hour < 12 ? 'morning' : (now()->hour < 17 ? 'afternoon' : 'evening') }}, {{ explode(' ', $user->name)[0] }}.

Here is what is happening at {{ \App\Models\Setting::school() }} in Term {{ $term }}, {{ $year }}.

Class lists Collect fees Record marks
Term {{ $term }} collection {{ pct($collected, $invoiced) }}
{{ money($collected) }} of {{ money($invoiced) }}
Attendance today {{ $attendanceRate === null ? 'Not marked' : $attendanceRate . '%' }} {{ $todayMarked }} learners marked

Fee collections

Last six months
{{ money(array_sum($monthly)) }} total
{!! \App\Support\Chart::bars($monthly, 210, '#0b5d51') !!}

Today's attendance

{{ now()->format('j M Y') }}
{!! \App\Support\Chart::donut($attendance, 150) !!}
Present{{ num($attendance['Present']) }}
Absent{{ num($attendance['Absent']) }}
Late{{ num($attendance['Late']) }}
Open attendance sheet

Class enrolment & performance

Term {{ $term }} {{ $year }}
Class lists
@forelse($enrolment as $class) @empty @endforelse
ClassStudentsFees paidMean score
{{ $class->name }} {{ num($class->student_count) }} {{ money($class->fee_paid) }} / {{ money($class->fee_total) }} @if($class->mean){{ number_format($class->mean, 1) }}@else—@endif

Recent payments

Latest receipts
@forelse($recentPayments as $p)
{{ initials($p->first_name.' '.$p->surname) }}
{{ $p->first_name }} {{ $p->surname }} {{ $p->receipt_no }} · {{ $p->mode }}
{{ money($p->amount) }}
@empty @endforelse

New admissions

Most recent learners
@if($canViewStudents)All@endif
@forelse($recentStudents as $s)
{{ initials($s->first_name.' '.$s->surname) }}
{{ $s->first_name }} {{ $s->surname }}{{ $s->admission_no }}
@if($canViewStudents)@endif
@empty @endforelse

Exams this term

Term {{ $term }} assessments
Manage
@forelse($exams as $e)
{{ $e->name }}{{ $e->type === 'mock' ? 'Mock examination' : 'Continuous assessment' }} · Out of {{ num($e->out_of) }}
@if($e->is_locked)Locked@endif
@empty @endforelse

Quick actions

Common tasks
@endsection @push('styles') @endpush