@extends('layouts.admin') @section('title', $resourceLabel ?? 'Examination Periods') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Examination', 'href' => route('examination.dashboard')], ['label' => $resourceLabel ?? 'Examination Periods'], ]; $columns = [ ['key' => 'code', 'label' => 'Code'], ['key' => 'name', 'label' => 'Name'], ['key' => 'start_date', 'label' => 'Start Date'], ['key' => 'end_date', 'label' => 'End Date'], ['key' => 'status', 'label' => 'Status', 'render' => 'status'], ]; $resourceLabel = $resourceLabel ?? 'Examination Periods'; $routePrefix = $routePrefix ?? 'examination.periods'; $permissionPrefix = $permissionPrefix ?? 'examination.periods'; $stats = $stats ?? []; $filters = $filters ?? []; if (!isset($records)) { $records = new \Illuminate\Pagination\LengthAwarePaginator([], 0, 15); } @endphp @include('institution.crud.index', compact('breadcrumbs', 'columns')) @endsection