| Step 2 |
Watch Video
|
@if($statusWatchVideo === 'complete')
@else
@if($statusWatchVideo === 'pending')
@else
@endif
@endif
|
@if($statusWatchVideo === 'complete')
doneCompleted
@else
{{ ucfirst($statusWatchVideo) }}
@endif
|
{{-- Hidden video list (will appear after Start) --}}
@foreach($videos as $index => $vid)
@php
$token = \Illuminate\Support\Str::uuid()->toString();
$secureUrl = \URL::temporarySignedRoute(
'secure.video',
now()->addMinutes(120),
['filename' => $vid->video_upload, 'token' => $token]
);
$watched = \App\Models\WorkshopPurchasedStatus::where('workshop_id', $workshop->id)
->where('user_id', auth()->id())
->where('type', 'watch_video')
->whereRaw("JSON_EXTRACT(video_details, '$.\"{$vid->id}\"') IS NOT NULL")
->exists();
@endphp
| Step 3 |
MCQ
|
@php
// @dd($statusReadBook,$statusWatchVideo);
$mcqEnabled = $statusReadBook === 'complete' && ($statusWatchVideo === 'complete');
$mcqText = $statusMcq === 'pending' ? 'Solve' : $b3['text'];
@endphp
@if ($statusMcq === 'complete')
@if($hasPassingScore)
@else
@endif
@else
@endif
|
@if ($statusMcq === 'complete')
{{-- doneCompleted --}}
@if($hasPassingScore)
doneCompleted
@else
warning
{{ $examScores[$workshop->id] ?? 0 }}%
@endif
@else
@endif
|