@extends('layouts.app') @section('title', 'Summary') @push('styles') @endpush @section('content')

Daily summary

{{ $totalMarked > 0 ? round(($present / $totalMarked) * 100) : 0 }}%
Attendance
{{ $present }} / {{ $totalMarked }}
out of {{ $totalStudents }} active students
New inquiries today
{{ $newInquiries }}
received on {{ \Carbon\Carbon::parse($date)->format('d M Y') }}

Attendance breakdown

{{ $present }}
Present
{{ $absent }}
Absent
{{ $late }}
Late
@if($totalMarked > 0)
Present {{ $totalMarked > 0 ? round(($present / $totalMarked) * 100) : 0 }}% Absent {{ $totalMarked > 0 ? round(($absent / $totalMarked) * 100) : 0 }}% Late {{ $totalMarked > 0 ? round(($late / $totalMarked) * 100) : 0 }}%
@endif

Inquiries today

@if($inquiriesToday->count() > 0)
@foreach($inquiriesToday as $inq)
{{ $inq->full_name }} {{ $inq->course_interest }}
{{ $inq->source ?? 'Direct' }}
@endforeach
@else
No inquiries received today.
@endif
Summary for {{ \Carbon\Carbon::parse($date)->format('l, d F Y') }}
{{ $present }} present {{ $absent }} absent {{ $late }} late {{ $newInquiries }} inquiries {{ $totalMarked }}/{{ $totalStudents }} marked
@endsection