@extends('layouts.app') @section('title', 'User Details') @section('header') @vite(['resources/sass/bootstrap-table.scss', 'resources/js/bootstrap-table.js']) @endsection @section('content')
No registered students
@elseTeaches | Expires |
---|---|
{{ $training->user->name }} | {{ Carbon\Carbon::parse($user->teaches->find($training->id)->pivot->expire_at)->toEuropeanDate() }} |
No registered trainings
@elseState | Level | Area | Type | Applied | Ended |
---|---|---|---|---|---|
status]["color"] }}"> {{ $statuses[$training->status]["text"] }}{{ isset($training->paused_at) ? ' (PAUSED)' : '' }} | @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 | {{ $training->area->name }} | {{ $types[$training->type]["text"] }} | {{ $training->created_at->toEuropeanDate() }} | @if ($training->closed_at != null) {{ $training->closed_at->toEuropeanDate() }} @else N/A @endif |
No division exam history
@elseExam | Created | Status |
---|---|---|
{{ $exam['rating'] }} @if($exam['category'] == 'reassignments') (Retake) @endif | {{ $exam['created_at'] }} | @if($exam['category'] == 'results') @if($exam['passed']) Pass {{ $exam['score'] }}% @else Fail @endif @else Pending @endif |
No registered endrosements
@endif @foreach($endorsements as $endorsement)Position | {{ $endorsement->ratings->first()->endorsement_type }} {{ $endorsement->ratings->first()->name }} |
---|---|
Issued | {{ $endorsement->valid_from->toEuropeanDate() }} |
Expire | {{ isset($endorsement->valid_to) ? $endorsement->valid_to->toEuropeanDateTime() : 'Never' }} |
Issued by | {{ isset($endorsement->issued_by) ? \App\Models\User::find($endorsement->issued_by)->name : 'System' }} |
Revoked by | {{ isset($endorsement->revoked_by) ? \App\Models\User::find($endorsement->revoked_by)->name : 'System' }} |
Rating | {{ implode(', ', $endorsement->positions->pluck('callsign')->toArray()) }} |
Issued | {{ $endorsement->valid_from->toEuropeanDate() }} |
Expire | {{ isset($endorsement->valid_to) ? $endorsement->valid_to->toEuropeanDateTime() : 'Never' }} |
Issued by | {{ isset($endorsement->issued_by) ? \App\Models\User::find($endorsement->issued_by)->name : 'System' }} |
Revoked by | {{ isset($endorsement->revoked_by) ? \App\Models\User::find($endorsement->revoked_by)->name : 'System' }} |
Rating | {{ $endorsement->ratings->first()->name }} |
Areas | {{ implode(', ', $endorsement->areas->pluck('name')->toArray()) }} |
Issued | {{ $endorsement->valid_from->toEuropeanDate() }} |
Expire | {{ isset($endorsement->valid_to) ? $endorsement->valid_to->toEuropeanDateTime() : 'Never' }} |
Issued by | {{ isset($endorsement->issued_by) ? \App\Models\User::find($endorsement->issued_by)->name : 'System' }} |
Revoked by | {{ isset($endorsement->revoked_by) ? \App\Models\User::find($endorsement->revoked_by)->name : 'System' }} |
Examining | {{ $endorsement->ratings->first()->name }} |
Areas | {{ implode(', ', $endorsement->areas->pluck('name')->toArray()) }} |
Issued | {{ $endorsement->valid_from->toEuropeanDate() }} |
Expire | {{ isset($endorsement->valid_to) ? $endorsement->valid_to->toEuropeanDateTime() : 'Never' }} |
Issued by | {{ isset($endorsement->issued_by) ? \App\Models\User::find($endorsement->issued_by)->name : 'System' }} |
Revoked by | {{ isset($endorsement->revoked_by) ? \App\Models\User::find($endorsement->revoked_by)->name : 'System' }} |