@extends('layouts.app') @push('css') @endpush @section('content')
Question
@foreach ($question as $key=>$item) @endforeach
# Author Session Name Topics Name Exam Type Action
{{$key+1}} @if (isset($item->user->full_name) && !empty($item->user->full_name)) {{$item->user->full_name}} @else @endif @if (isset($item->chapter->questionbank->title) && !empty($item->chapter->questionbank->title)) {{$item->chapter->questionbank->title}} @else @endif @if (isset($item->chapter->name) && !empty($item->chapter->name)) {{$item->chapter->name}} @else @endif @if (isset($item->examtype->name) && !empty($item->examtype->name)) {{$item->examtype->name}} @else @endif @if (Auth::user()->id==$item->user_id || Auth::user()->role_id==1 || Auth::user()->role_id==2) @if($item->is_bank==0) @can('question.edit') Edit @endcan @can('question.make') Make Question @endcan @can('questionset.edit') Edit Question @endcan @can('question.status') @endcan @can('question.destroy') @endcan @endif @else @endif @can('questionset.preview') Preview @endcan
@endsection @push('js') @endpush