| {{$profile->user->first_name . ' ' . $profile->user->last_name}} |
{{$profile->user->email}} |
{{$profile->property->name}} |
{{$profile->job_role->name}} |
@php
$training_completed = 0;
@endphp
@foreach($trainings as $training)
@php
$user_training = $profile->user->training->where('training_id' , $training->id)->first();
@endphp
@if($user_training)
@if ($user_training->complete == 1)
Completed (Score {{ $user_training->score }}) |
@php
$training_completed++;
@endphp
@else
Started |
@endif
@else
Not started |
@endif
@endforeach
{{$training_completed}} |
{{ $profile->grand_total_points }} |
{{$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
|
@endif
{{$profile->user->created_at->format('d-m-Y, H:m')}} |
{{$profile->user->total_minutes_spent}} |
@endforeach