@extends('parents.parent_dashboard') @section('customcss') @endsection @section('admin')

Student Daily Diary

Student Diary Filter
Select a student and date to view the daily diary.
@if(request()->filled('student_id')) Reset @endif
@if($selectedStudent && $registration)

{{ $schoolProfile?->school_name ?: 'School Name' }}

@if($schoolProfile?->address)

{{ $schoolProfile->address }}

@endif @if($schoolProfile?->phone)

Phone: {{ $schoolProfile->phone }}

@endif
Student: {{ $selectedStudent->student_name_english ?: $selectedStudent->student_name_english }} @if($selectedStudent->admission_roll) | Roll: {{ $selectedStudent->admission_roll }} @endif | Session: {{ $registration->session?->name ?: '-' }} | Shift: {{ $shift?->name ?: '-' }} | Class: {{ $registration->class_model?->name ?: '-' }} | Section: {{ $registration->section?->name ?: '-' }}
Date: {{ \Carbon\Carbon::parse($selectedDate)->format('d M, Y') }}

Day: {{ \Carbon\Carbon::parse($selectedDate)->format('l') }}

@forelse($diaryRows as $row) @empty @endforelse
Period Time Subject Teacher Home Work Description
{{ $row['period'] }} {{ $row['time'] }} {{ $row['subject'] }} {{ $row['teacher'] }} {{ $row['homework_title'] ?: '-' }} @if($row['description']) {!! nl2br(e($row['description'])) !!} @else - @endif
{{ $notice ?: 'No diary data found for the selected date.' }}
@elseif($selectedStudent && $notice)
{{ $notice }}
@elseif($students->isEmpty())
No student is currently assigned to this parent account.
@else
Select a student to view the daily diary.
@endif
@endsection @section('customjs') @endsection