@extends('layouts.app') @section('title', $activity->name . ' - Teacher Journal') @push('styles') @endpush @section('content') Back to Activities

{{ $activity->name }}

@if($activity->description)

{{ $activity->description }}

@endif Edit
@csrf @method('DELETE')

Details

Date: {{ $activity->date->format('M j, Y') }}

Teacher: @if($activity->teacher) {{ $activity->teacher->name }} {{ $activity->teacher->last_name }} @else None @endif

Group: @if($activity->group) {{ $activity->group->name }} @else None @endif

Students ({{ $activity->students->count() }})

@forelse($activity->students as $student)
{{ $student->name }} {{ $student->last_name }} ({{ $student->group->name ?? 'No group' }}) @if($student->pivot->score !== null) Score: {{ $student->pivot->score }} @endif @if($student->pivot->notes) {{ Str::limit($student->pivot->notes, 20) }} @endif
@empty

No students attached to this activity.

@endforelse @endsection