@extends('./layouts.managermaster') @section('title', 'Trainings summary') @section('content')
TRAININGS SUMMARY
@if(session('success'))
{{session('success')}}
@endif @if(session('error'))
{{session('error')}}
@endif
Total trainings: {{$totaltrainings}}
Number of trainings per type
@if(count($trainingtypes)>0) @foreach($trainingtypes as $trainingtype) @endforeach @else No trainings recorded between the specified dates @endif
Training type Number of trainings
{{$trainingtype->trainingtype}} {{$trainingtype->trainings}}
Trainings conducted
@if(count($trainings)>0) @foreach($trainings as $training)
  1. {{$training->trainingtitle}}
@endforeach @else No trainings records within the specified dates @endif
Trainings and trainers
@if(count($trainingtrainers)>0) @foreach($trainingtrainers as $trainingtrainer) @endforeach @else No training records within the specified dates @endif
Trainer name Number of trainings
{{$trainingtrainer->trainername}} {{$trainingtrainer->trainings}}
@endsection