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

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

@can('exam_category_store') @endcan
@can('exam_category_update_Arrangment') @endcan @foreach ($categories as $key => $category) @can('exam_category_update_Arrangment') @endcan @endforeach
# {{ trans('messages.Name') }} {{ trans('messages.Exam') }} {{ trans('messages.Questions') }}{{ trans('messages.Arrangment') }}{{ trans('messages.Wrong to fail') }} {{ trans('messages.Created') }} {{ trans('messages.Options') }}
{{ $key + 1 + ($categories->currentPage() - 1) * $categories->perPage() }} {{ $category->{'name_' . App::getLocale()} }} {{ $category->exam->{'name_' . App::getLocale()} }} {{ $category->questions_num }} {{ trans('messages.Question') }}
{{ $category->wrong_question_to_fail }} {{ trans('messages.Question') }} {{ $category->created_at }} @can('exam_category_delete')
@csrf @method('DELETE')
@endcan @can('question_list') @endcan @can('exam_category_edit') @endcan @can('exam_category_delete') @endcan
{!! $categories->withQueryString()->links('pagination::bootstrap-4') !!}
@endsection @section('modal') @endsection @section('script') @endsection