@extends('admin.layouts.app') @section('content')
@forelse ($questions as $key=>$question) @empty @endforelse
# Question Option A Option B Option C Option D Correct Answer Action
{{($key+1) + ($questions->currentPage() - 1)*$questions->perPage()}} {!!$question->question!!} {!!$question->option_a!!} {!!$question->option_b!!} {!!$question->option_c!!} {!!$question->option_d!!} Option {{ucfirst($question->correct_answer)}} @can('topic-edit') @endcan @can('topic-delete') @endcan
@method('DELETE') @csrf

Nothing Found

Showing {{($questions->currentpage()-1)*$questions->perpage()+1}} to {{(($questions->currentpage()-1)*$questions->perpage())+$questions->count()}} of {{$questions->total()}} Questions

{!! $questions->links() !!}
@endsection