@extends('partials.app') @section('content')

Select Documents & Question Quota

Choose documents to include. The system will pull random questions from each document based on the quota you set.

@csrf
@foreach ($allDocs as $doc) @php // Check if this document is already linked to the module $linkedDoc = $module->documents->where('id', $doc->id)->first(); $isLinked = !is_null($linkedDoc); $currentQuota = $isLinked ? $linkedDoc->pivot->question_quota : 0; @endphp @endforeach
Select Master Document Details Total Pool Questions Questions Per Exam (Quota)
{{ $doc->doc_name }}
{{ $doc->doc_number }} | {{ $doc->doc_type }}
{{ $doc->questions_count }} Available
of {{ $doc->questions_count }}
@endsection