@extends('admin.layouts.main') @section('content')

{{ trans('messages.Questions') }}

@php $question_types = ['mcq' => 'MCQ', 'mcq_image' => 'MCQ image', 'text_input' => 'Text', 'drag_drop' => 'Drag & Drop']; @endphp
@if ($exam_id && $category_id)
@can('question_create') @endcan
@else @endif
@can('question_update') @endcan @foreach ($questions as $key => $question) @can('question_update') @endcan @endforeach
# {{ trans('messages.Exam') }} {{ trans('messages.Category') }} {{ trans('messages.Question') }} {{ trans('messages.Question type') }}{{ trans('messages.Arrangment') }}{{ trans('messages.Image') }} {{ trans('messages.Created') }} {{ trans('messages.Options') }}
{{ $key + 1 + ($questions->currentPage() - 1) * $questions->perPage() }} {{ $question->exam->{'name_' . App::getLocale()} }} {{ $question->examCategory->{'name_' . App::getLocale()} }} {{ $question->question_type }} {{ $question->{'question_' . App::getLocale()} }}
@php if ($question->question_image) { $link = $question->question_image; } else { $link = '/images/noimg.png'; } @endphp your question_image {{ $question->created_at }} @can('question_delete')
@csrf @method('DELETE')
@endcan @can('answer_list') @endcan @can('question_update') @endcan @can('question_delete') @endcan
{!! $questions->withQueryString()->links('pagination::bootstrap-4') !!}
@endsection @section('modal') @endsection @section('script') @endsection