@extends('layouts.master', ['title' => 'Exams']) @section('content')

Exams

@if(auth()->user()->hasPermission('exams.create')) @endif
@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif @foreach ($exams as $exam) @endforeach
S No. Exam Name No. of Questions Max Time Allowed Marks per question Created Date Action
{{ $loop->iteration }} {{$exam->examname}} {{$exam->no_of_questions}} {{ \Carbon\CarbonInterval::seconds($exam->max_time_allowed)->cascade()->forHumans() }} {{$exam->marks_per_question}} {{date_format($exam->created_at, 'd-m-Y')}} @if(auth()->user()->hasPermission('exams.edit')) @endif @if(auth()->user()->hasPermission('exams.delete')) @endif
{{ $exams->links() }}
@endsection