@extends('layouts.adminLayout.dashboardLayout') @section('styles') @endsection @section('content')
{{ Breadcrumbs::render('examList', $examList) }}

Exam Master List

Back Add New
Show per page
Reset
@if (isset($examList) && !empty($examList) && $examList->total() > 0) @foreach ($examList as $index => $exam) @php $statusChecked = $exam->Is_active == 1 ? 'checked' : ''; @endphp @if($exam->mockval == 1) @php // Collect all 12 dates from the $exam object $dateArrays = [ $exam->Date_1, $exam->Date_2, $exam->Date_3, $exam->Date_4, $exam->Date_5, $exam->Date_6, $exam->Date_7, $exam->Date_8, $exam->Date_9, $exam->Date_10, $exam->Date_11, $exam->Date_12 ]; $previousDates = []; foreach ($dateArrays as $dateValue) { if (!empty($dateValue)) { $prevDate = date("d-m-Y", strtotime($dateValue . " -1 day")); $previousDates[] = $prevDate; } } $Mock_Date = implode(", ", $previousDates); @endphp @else @php $Mock_Date = date('d-m-Y',strtotime($exam->Mock_Date)); @endphp @endif @endforeach @else @endif
# Exam Name Exam Mode Exam Year Duration Mock Date Status Actions
{{ $examList->firstItem() + $index }} {{ $exam->{'Exam Name'} ?? '-' }} {{ config('constants.Exam_Mode')[$exam->Exam_Mode] ?? '-' }} {{ $exam->Year ?? '-' }} {{ $exam->Exam_Duration ?? '-' }} {{ $Mock_Date }} Edit
No Data Available!
@if ($examList->total() > 0)
Showing {{ $examList->firstItem() }} to {{ $examList->lastItem() }} of {{ $examList->total() }} results
{{ $examList->appends(request()->query())->links('pagination::bootstrap-5') }}
@endif
Import Data
@csrf
Download Sample
@endsection @section('script') @endsection