| {{$profile->user->first_name . ' ' . $profile->user->last_name}} |
@if(isset($profile->department)){{$profile->department->name}}@else No Department Set @endif |
{{$profile->job_role->name}} |
@if(count($profile->user->training) !== 0)
@php
$t = 0
@endphp
@foreach ($profile->user->training as $usertraining)
@if($usertraining->complete == 1)
Completed |
@else
Started |
@endif
@php
$t++
@endphp
@endforeach
{{-- For if user has started 1 training but not all --}}
@while ($t < count($trainings))
Not started |
@php
$t++
@endphp
@endwhile
@else
@foreach ($trainings as $training)
Not started |
@endforeach
@endif
{{$profile->total_trainings_completed}} |
{{$profile->total_logins}} |
@if(isset($profile->user->loginHistory))
@if($profile->user->loginHistory()->latest()->first())
{{$profile->user->loginHistory()->latest()->first()->last_login}}
@else
n/a
@endif
|
@else
No Logins |
@endif
{{$profile->user->created_at}} |
{{$profile->user->total_minutes_spent}} |
@endforeach