@extends('layouts.admin') @section('title', $resourceLabel ?? 'Applicants') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Student Admission', 'href' => route('admission.dashboard')], ['label' => 'Applicants'], ]; $columns = [ ['key' => 'first_name', 'label' => 'First Name'], ['key' => 'last_name', 'label' => 'Last Name'], ['key' => 'email', 'label' => 'Email'], ['key' => 'phone', 'label' => 'Phone'], ['key' => 'status', 'label' => 'Status', 'render' => 'status'], ]; $resourceLabel = $resourceLabel ?? 'Applicants'; $routePrefix = $routePrefix ?? 'admission.applicants'; $permissionPrefix = $permissionPrefix ?? 'admission.applicants'; $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