@extends('layouts.site') @php $my_name_view = 'Test - Moje podejscia'; $my_short_view_name = 'Moje podejscia'; @endphp @section('title', 'Test - Moje podejscia') @section('content') @php $navbarStackForBack = my_SzkolNavbarBuild($my_name_view ?? null, $my_short_view_name ?? null); $defaultBackUrl = route('szkolenia.presentation.show', $training->id); $backUrl = $defaultBackUrl; if (is_array($navbarStackForBack) && count($navbarStackForBack) >= 2) { $previousNode = $navbarStackForBack[count($navbarStackForBack) - 2] ?? null; $previousPath = is_array($previousNode) ? trim((string) ($previousNode['path'] ?? '')) : ''; if ($previousPath !== '') { $backUrl = url($previousPath); } } @endphp

Moje podejscia do testu

Powrot
Szkolenie: {{ $training->temat ?: ('#'.$training->id) }}
Test: {{ $test->nazwa ?: ('#'.$test->id) }}
Maks. podejsc: {{ (int)($test->max_podejsc ?? 0) }}
Lista podejsc
@forelse($attempts as $idx => $attempt) @empty @endforelse
# Nr podejscia Status Wynik Punkty Zaliczono Zakonczono Szczegoly
{{ $attempts->firstItem() + $idx }} {{ (int)($attempt->nr_podejscia ?? 0) }} {{ (string)($attempt->status ?? '-') }} @if($attempt->wynik_procent !== null) {{ (float)$attempt->wynik_procent }}% @else - @endif @if($attempt->punkty_uzyskane !== null || $attempt->punkty_max !== null) {{ (float)($attempt->punkty_uzyskane ?? 0) }} / {{ (float)($attempt->punkty_max ?? 0) }} @else - @endif @if($attempt->wynik_procent === null) - @elseif((int)($attempt->zaliczono ?? 0) === 1) TAK @else NIE @endif {{ $attempt->zakonczono_at ?: '-' }} @if((string)($attempt->status ?? '') === 'checked') Podglad @else @endif
Brak podejsc.
@if(method_exists($attempts, 'links'))
{{ $attempts->links() }}
@endif
@endsection @section('menu') @include('sites.szkol.menu_szkol') @endsection @section('navbar') @include('sites.szkol._navbar_szkol') @endsection