@extends('layouts.app') @section('title', 'Training Reports') @section('content') @empty($reports)
There's no reports to show.
@endempty @foreach($reports as $report)
Reports for {{ $training->user->first_name }}'s training {{ $report->report_date->toEuropeanDate() }} {{ $report->draft ? "(DRAFT)" : "" }} for @foreach($training->ratings as $rating) @if ($loop->last) {{ $rating->name }} @else {{ $rating->name . " + " }} @endif @endforeach

Position: {{ $report->position }}

Mentor: {{ $report->user->name }}

Content:

{{ $report->content }}

Attachments:

@if(count($report->attachments) == 0) No attachments to this report. @endif @foreach($report->attachments as $attachment) {{ $attachment->url }} @endforeach

@if (\Illuminate\Support\Facades\Gate::inspect('update', $report)->allowed()) Update report @endif
@endforeach @endsection