@extends('layouts.admin') @section('title', $resourceLabel ?? 'Students') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Student Registration', 'href' => route('registration.dashboard')], ['label' => $resourceLabel ?? 'Students'], ]; $columns = [ ['key' => 'computer_number', 'label' => 'Computer Number'], ['key' => 'first_name', 'label' => 'First Name'], ['key' => 'surname', 'label' => 'Surname'], ['key' => 'email', 'label' => 'Email'], ['key' => 'student_status', 'label' => 'Student Status', 'render' => 'status'], ]; $resourceLabel = $resourceLabel ?? 'Students'; $routePrefix = $routePrefix ?? 'registration.students'; $permissionPrefix = $permissionPrefix ?? 'student.registration'; $stats = $stats ?? []; $filters = $filters ?? []; if (!isset($records)) { $records = new \Illuminate\Pagination\LengthAwarePaginator([], 0, 15); } @endphp @include('institution.crud.index', compact('breadcrumbs', 'columns')) @endsection