@extends('admin.layout.app') @section('body')
| # | {{ __('admin.quiz') }} | {{ __('admin.course') }} | {{ __('admin.schedule') }} | {{ __('admin.duration') }} | {{ __('admin.action') }} |
|---|---|---|---|---|---|
| #{{ $qz->id }} |
{{ $qz->title }}
@if($attempt)
{{ __('admin.attempt') }}#{{ $attempt->id }} •
{{ $attempt->status }}
@endif
|
{{ $qz->course?->title ?? '—' }}
{{ $qz->course?->code ?? '' }}
|
{{ __('admin.start') }}
{{ $qz->starts_at?->format('Y-m-d H:i') ?? '—' }}
{{ __('admin.end_2') }}
{{ $qz->ends_at?->format('Y-m-d H:i') ?? '—' }}
@if($isNotStarted)
{{ __('admin.not_started_yet') }}
@elseif($isEnded)
{{ __('admin.closed') }}
@else
{{ __('admin.open') }}
@endif
|
{{ $qz->duration_minutes ? $qz->duration_minutes.' min' : 'No limit' }} |
{{-- ✅ If quiz not open --}}
@if(!$isOpen)
@else
{{-- ✅ Continue attempt --}}
@if($attempt && $attempt->status === 'in_progress')
{{ __('admin.continue') }}
{{-- ✅ Result --}}
@elseif($attempt && in_array($attempt->status, ['submitted','graded']))
{{ __('admin.result') }}
{{ __('admin.retake') }}
{{-- ✅ Start --}}
@else
{{ __('admin.start_2') }}
@endif
@endif
{{-- ✅ Admin only: quick view --}}
@if($isAdmin)
@endif
|
| {{ __('admin.no_quizzes_available') }} | |||||