@extends('layouts.app') @section('title', 'Training Requests') @section('title-flex')
State | Vatsim ID | Name | Level | Type | ATC Hours | Period | Area | Applied | Mentor |
---|---|---|---|---|---|---|---|---|---|
status]["color"] }}"> @if($training->activities->where('type', 'COMMENT')->count()) @php $notes = ""; foreach($training->activities->where('type', 'COMMENT') as $a){ $notes .= $a->created_at->toEuropeanDate().': '.$a->comment.' '; } @endphp {{ $statuses[$training->status]["text"] }} @else {{ $statuses[$training->status]["text"] }} @endif {{ isset($training->paused_at) ? ' (PAUSED)' : '' }} | {{ $training->user->id }} | {{ $training->user->name }} | @if ( is_iterable($ratings = $training->ratings->toArray()) ) @for( $i = 0; $i < sizeof($ratings); $i++ ) @if ( $i == (sizeof($ratings) - 1) ) {{ $ratings[$i]["name"] }} @else {{ $ratings[$i]["name"] . " + " }} @endif @endfor @else {{ $ratings["name"] }} @endif | {{ $types[$training->type]["text"] }} | {{ ($training->user->atcActivity->count()) ? round($training->user->atcActivity->sum('hours')) : "0" }}h | @if ($training->started_at == null && $training->closed_at == null) Training not started @elseif ($training->closed_at == null) {{ $training->started_at->toEuropeanDate() }} - @elseif ($training->started_at != null) {{ $training->started_at->toEuropeanDate() }} - {{ $training->closed_at->toEuropeanDate() }} @else N/A @endif | {{ $training->area->name }} | {{ $training->created_at->toEuropeanDate() }} | {{ $training->getInlineMentors() }} |