{{--
@foreach ($questions as $question) @endforeach
--}}
@foreach ($questions as $question)
{{--
{{ ($question[0]->department_id-5) }} of {{ $loop->count }} Completed
--}}

{{ $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
@if ($errors->has('description.'.$q->id)) {{ $errors->first('description.'.$q->id) }} @endif
@if ( $picture && array_key_exists($q->id, $picture) ) @endif
@if ( $video && array_key_exists($q->id, $video) && $video[$q->id] ) View Video @endif
@endforeach
{{-- --}}
@endforeach
@push('scripts') @endpush