{{--
@if ($authUser->category_id != 2) @endif @foreach ($questions as $question) @endforeach
--}}
@foreach ($questions as $question)
{{--
{{ $loop->iteration }} of {{ $loop->count }} Completed
--}}

{{ $question[0]->category?->name }} - {{ $question[0]->department?->name }}

@foreach ($question as $key=> $q)

Q-{{ $key+1 }})   {{ $q->name }}

@if ($q->note) {{$q->note}} @endif @if ($q->link) @if ($q->link_type == 1) @else @endif @endif
@foreach ($q->options as $option)
id == $q->userSelectedOption->option_id ? 'checked' : '' }} type="radio" name="qst_option.{{ $q->id }}" value="{{ $option->id }}" readonly>
@endforeach
@php $fileNameParts = explode('.', $q->userSelectedOption->document_1); $ext = end($fileNameParts); @endphp @if ($ext == 'pdf') View File @else @endif
@php $fileNameParts = explode('.', $q->userSelectedOption->document_2); $ext = end($fileNameParts); @endphp @if ($ext == 'pdf') View File @else @endif
Marks : {{ $selected_marks && array_key_exists($q->id, $selected_marks) ? $selected_marks[$q->id] : '0' }}
@endforeach
{{-- --}}
@endforeach
@livewire('paryavaran-dut-form')
@push('scripts') @endpush