@extends('layouts.admin') @section('title', $resourceLabel ?? 'Student Accounts') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Student Finance', 'href' => route('finance.dashboard')], ['label' => $resourceLabel ?? 'Student Accounts'], ]; $columns = [ ['key' => 'student_id', 'label' => 'Student'], ['key' => 'current_balance', 'label' => 'Balance'], ['key' => 'currency', 'label' => 'Currency'], ['key' => 'status', 'label' => 'Status', 'render' => 'status'], ]; $resourceLabel = $resourceLabel ?? 'Student Accounts'; $routePrefix = $routePrefix ?? 'finance.accounts'; $permissionPrefix = $permissionPrefix ?? 'finance.accounts'; $stats = $stats ?? []; $filters = $filters ?? []; if (!isset($records)) { $records = new \Illuminate\Pagination\LengthAwarePaginator([], 0, 15); } @endphp @include('institution.crud.index', compact('breadcrumbs', 'columns')) @endsection