@php $totalTasks = App\Models\TrackRecord::where('user_training_id', $track_record->user_training_id)->count(); $masteredTasks = App\Models\TrackRecord::where('user_training_id', $track_record->user_training_id) ->where('trainee', 3) ->count(); $progressPercentage = ($totalTasks > 0) ? round(($masteredTasks / $totalTasks) * 100) : 0; @endphp
{{ $progressPercentage }}%

{{ __('app.title') }}: {{ $track_record->task->title }}

@csrf
@php $path = unserialize($track_record->task->data_path); $src = reset($path); $src = Storage::url($src); @endphp @if ($track_record->data_type === 'image') @elseif ($track_record->data_type === 'video') @elseif ($track_record->data_type === 'pdf') @endif
@if($isTrainee)
@endif @if ($isInstructor)
@endif @if ($isSupervisor)
@endif
@if ($isInstructor) @elseif ($isSupervisor) @else @endif