@extends('layouts.app') @section('title', 'My Dashboard') @section('page-title', 'Dashboard') @section('content') @php $hour = now()->hour; $greeting = $hour < 12 ? 'Good Morning' : ($hour < 17 ? 'Good Afternoon' : 'Good Evening'); @endphp
{{ $profile?->class_?->full_name ?? '' }} · Roll No: {{ $profile?->roll_number ?? '—' }}
Attendance
{{ $attendance['percentage'] }}%
{{ $attendance['present'] }}/{{ $attendance['total'] }} days
Assignments
{{ $pendingAssignments }}
pending
Fees Due
₹{{ number_format($feesDue) }}
Class
{{ $profile?->class_?->full_name ?? 'N/A' }}
| Subject | Exam | Marks | Grade |
|---|---|---|---|
| {{ $mark->exam->subject->name ?? '—' }} | {{ $mark->exam->name }} | @if($mark->is_absent) ABSENT @else {{ $mark->marks_obtained }} /{{ $mark->exam->total_marks }} @endif | {{ $mark->grade ?? '—' }} |
| No marks recorded yet | |||
{{ $insight->insight }}
{{ $a->title }}
{{ Str::limit($a->content, 80) }}
{{ $a->created_at->diffForHumans() }}