@extends('layouts.app') @section('title', 'Training Report') @section('content')
{{ $report->training->user->first_name }}'s training {{ $report->report_date->toEuropeanDate() }} @if($report->draft) Draft @endif
@csrf @method('PATCH')
@foreach($positions as $position) @browser('isFirefox') @else @endbrowser @endforeach @error('position') {{ $errors->first('position') }} @enderror
@error('report_date') {{ $errors->first('report_date') }} @enderror
@error('content') {{ $errors->first('content') }} @enderror
@error('contentimprove') {{ $errors->first('contentimprove') }} @enderror
draft ? "checked" : "" }}> @error('draft') {{ $errors->first('draft') }} @enderror
@if (\Illuminate\Support\Facades\Gate::inspect('update', $report)->allowed()) @endif @if (\Illuminate\Support\Facades\Gate::inspect('delete', $report)->allowed()) Delete report @endif
Manage attachments
@if(count($report->attachments) == 0) This report has no attachments. @endif @foreach($report->attachments as $attachment) @endforeach

@csrf
@error('file') {{ $errors->first('file') }} @enderror
@endsection @section('js') @vite(['resources/js/flatpickr.js', 'resources/sass/flatpickr.scss']) @vite(['resources/js/easymde.js', 'resources/sass/easymde.scss']) @endsection