@props(['sessions']) {{-- Face-to-face sessions a person registered for, with their attendance --}} @if ($sessions->isNotEmpty())

Face-to-face sessions

@foreach ($sessions as $s) @php $mark = $s->pivot->attended; @endphp @endforeach
Session Date Venue Attendance
{{ $s->title }}

{{ $s->course->title }}

{{ $s->starts_at->format('j M Y, g:ia') }} {{ $s->venue }} @if ($mark === null) {{ $s->starts_at->isFuture() ? 'Upcoming' : 'Not marked' }} @elseif ($mark) Present @else Absent @endif
@endif