@extends('layouts.parent') @section('title', 'Class reports · '.config('brand.name')) @section('content')
@include('parent.partials.child-picker') @if (! $child)

Select or add a child to view class reports.

@elseif ($reports->isEmpty())

No ended classes yet for {{ $child->first_name }}. A report appears after the teacher, MyEdCamp, or the class time ends the session.

@else
@foreach ($reports as $report) @php $row = $report->rowForStudent($child->id); @endphp @endforeach
Class Started Ended Joined
{{ $report->session?->displayTitle() }} {{ $report->started_at?->timezone('Africa/Accra')->format('D j M · g:i A') ?: '—' }} {{ $report->ended_at?->timezone('Africa/Accra')->format('D j M · g:i A') ?: '—' }} {{ ! empty($row['joined_at']) ? \Illuminate\Support\Carbon::parse($row['joined_at'])->timezone('Africa/Accra')->format('g:i A') : 'Did not join' }} View report
@endif
@endsection