@php $last_date = explode(" ", $this->calendar->from)[0]; @endphp


{{$calendar->course ? $calendar->course->name : $calendar->name}}

{!!$this->getDateX()!!}
ora inizio {{date("H:i", strtotime($calendar->from))}}

{{-- @if($manual)
@else

@endif --}}
@php $totalPresences = 0; @endphp @foreach($records as $idx => $record) @endforeach
# Cognome Nome Certificato Campo Istruttore Presenza Motivazione Note
{{$idx + 1}} {{$record["last_name"]}} {{$record["first_name"]}} @php list($status, $date) = explode("|", $record["certificate"]); @endphp @if($status == 0) Scaduto @endif @if($status == 1) In scadenza @endif @if($status == 2) Scadenza @endif @if(is_null($status) || $status == '') Sospeso @endif {{$date}} {{$record["court"]}} {{$record["instructor"]}}{{$record["additional_instructor"] ? ", ".$record["additional_instructor"] : ""}} @if ($record["status"] != 99) @if ($record["presence"]) @if ($record["my_presence"]) @if($manual) @else @php if ($record['presence']) { $totalPresences ++; } @endphp @endif @else @php $totalPresences++; @endphp @endif @else @php if ($record['presence']) { $totalPresences ++; } @endphp @endif @else Annullata   -   Ripristina @endif {{$record["motivation"]}} {{$record["notes"]}}
Totale presenti {{$totalPresences}}
@if($calendar->status == 0)
@endif

@if($calendar->status == 0)
@if(!$manual) {{-- --}} @endif
@if(!$manual)
Chiudi {{-- --}}
@endif @endif
@if($calendar->status == 0) @if(!$manual)
@endif @else LEZIONE ANNULLATA ({{$calendar->motivation ? $calendar->motivation->name : ''}}) @endif
@push('scripts') @endpush @push('scripts') @endpush @push("css") @endpush