@extends('layouts.staff_dashboard') @section('title', 'View Coding Questions') @section('content') @php $isSql = $isSql ?? false; @endphp
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{ $isSql ? 'SQL Problem Bank' : 'Programming Problem Bank' }}

Coding Questions Management

{{ $courseName ?? 'N/A' }} {{ $moduleName ?? 'N/A' }} {{ $topicName ?? 'N/A' }}
Change Selection
@csrf
@csrf
{{ $questions->total() }} Question{{ $questions->total() === 1 ? '' : 's' }}
@if($isSql) @include('staff.coding.partials.sql_coding_rows', [ 'questions' => $questions, 'serialStart' => ($questions->currentPage() - 1) * $questions->perPage() + 1 ]) @else @include('staff.coding.partials.coding_rows', [ 'questions' => $questions, 'serialStart' => ($questions->currentPage() - 1) * $questions->perPage() + 1 ]) @endif
@include('staff.pagination.coding', ['questions' => $questions])
@endsection