@extends('layouts.app') @section('title', 'Closed Training Requests') @section('title-flex')
State | Vatsim ID | Name | Level | Type | Period | Area | Applied | Closed |
---|---|---|---|---|---|---|---|---|
status]["color"] }}"> {{ $statuses[$training->status]["text"] }} {{ 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"] }} | @if ($training->started_at == null && $training->closed_at == null) Training never 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() }} | {{ !empty($training->closed_at->toEuropeanDate()) ? $training->closed_at->toEuropeanDate() : "-" }} |