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