@extends('layouts.admin') @section('title', $resourceLabel ?? 'Applications') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Student Admission', 'href' => route('admission.dashboard')], ['label' => 'Applications'], ]; $columns = [ ['key' => 'application_number', 'label' => 'Number'], ['key' => 'applicant.first_name', 'label' => 'Applicant'], ['key' => 'programme.name', 'label' => 'Programme'], ['key' => 'status', 'label' => 'Status', 'render' => 'enum'], ['key' => 'progress_percent', 'label' => 'Progress'], ]; $resourceLabel = $resourceLabel ?? 'Applications'; $routePrefix = $routePrefix ?? 'admission.applications'; $permissionPrefix = $permissionPrefix ?? 'admission.applications'; $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