@extends('layouts.app') @section('namePage', 'Kuis') @section('content')

{{ __('Kuis / Post Test') }}

{{ __('Kelola daftar post test: tambah, ubah, lihat laporan, atau hapus.') }}

@if (session('success'))
{{ session('success') }}
@elseif (session('alert'))
{{ session('alert') }}
@endif {{ __('Tambah') }}
@if ($sessions->isEmpty())

{{ __('Belum ada post test.') }}

{{ __('Klik "Tambah" untuk membuat post test baru.') }}

@else
@foreach ($sessions as $item)

{{ $item->title }}

{{ __('Durasi:') }} {{ $item->duration }} {{ __('menit') }}

{{-- Laporan / Show --}} {{ __('Laporan') }} {{-- Edit --}} {{ __('Edit') }} {{-- Hapus (DELETE) --}}
@csrf @method('DELETE')
{{-- Toggle Status Aktif / Tidak Aktif --}}
@csrf

{{ $item->tipe }}

@endforeach
{{-- Optional Pagination --}} @if (method_exists($sessions, 'links'))
{{ $sessions->links() }}
@endif @endif
@section('scripts') @endsection @endsection