@extends('layout.app')
@section('left-menu')
@parent
- Strażacy
@if(auth()->user()->accessLevel() == 50)
@endif
@stop
@section('center-area')
@parent
@if( auth()->check())
@if( auth()->user()->fireStationID == NULL)
Jednostka nie istnieje
@else
@php
$i=1;
@endphp
@foreach($trainings as $training)
{{$i}} |
{{ $training->trainingName }} |
{{--{{$howMuch[$training->id]}} | --}}
@if($training->fireStationID != 0)
@endif
Zarządzaj
@if($training->fireStationID != 0)
@endif
|
|
Imię i Nazwisko |
Ważne od: |
Ważne do: |
@foreach($fireFighters[$training->id] as $fireFighter)
@if($fireFighter->dateOfComplete != null and $fireFighter->dateOfExpiry != null)
{{$fireFighter->name}} {{$fireFighter->surname}} |
{{$fireFighter->dateOfComplete}} |
{{$fireFighter->dateOfExpiry}} |
@endif
@endforeach
|
@php
$i++;
@endphp
@endforeach
{{ $trainings->links() }}
@endif
@else
Brak autoryzacji
@endif
@stop