@extends('backend.layouts.app') @section('content')
Exams
{{--
--}}
{{--
--}}
@if(\Auth::user()->user_type == 'admin') @endif @if($exams->isNotEmpty()) @foreach($exams as $key => $exam) @if(\Auth::user()->user_type == 'admin') @endif @endforeach @endif
# NameSchool NameGrade Section Status Action
{{ ($key+1) + ($exams->currentPage() - 1)*$exams->perPage() }} {{ $exam->title }}{{ ($exam->school != null) ? $exam->school->name : 'N/A' }}{{ ($exam->grade != null) ? $exam->grade->name : 'N/A' }} @if($exam->section_id != null) @foreach(\App\Models\Section::whereIn('id', json_decode($exam->section_id, true))->get() as $value) {{$value->name}} @endforeach @endif
status ==1) checked @endif>
    {{ $exams->appends(request()->input())->links() }}
@endsection @section('modal') @include('backend.modals.delete') @endsection @section('script') @endsection