@extends('layouts.admin') @section('title', $resourceLabel ?? 'Admission Intakes') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Student Admission', 'href' => route('admission.dashboard')], ['label' => 'Admission Intakes'], ]; $columns = [ ['key' => 'code', 'label' => 'Code'], ['key' => 'name', 'label' => 'Name'], ['key' => 'admissionCycle.name', 'label' => 'Cycle'], ['key' => 'programme.name', 'label' => 'Programme'], ['key' => 'capacity', 'label' => 'Capacity'], ['key' => 'status', 'label' => 'Status', 'render' => 'status'], ]; $resourceLabel = $resourceLabel ?? 'Admission Intakes'; $routePrefix = $routePrefix ?? 'admission.intakes'; $permissionPrefix = $permissionPrefix ?? 'admission.intakes'; $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