@extends('layouts.admin') @section('title', $resourceLabel ?? 'Payments') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Student Finance', 'href' => route('finance.dashboard')], ['label' => $resourceLabel ?? 'Payments'], ]; $columns = [ ['key' => 'transaction_reference', 'label' => 'Reference'], ['key' => 'amount', 'label' => 'Amount'], ['key' => 'payment_method', 'label' => 'Method'], ['key' => 'payment_status', 'label' => 'Status'], ]; $resourceLabel = $resourceLabel ?? 'Payments'; $routePrefix = $routePrefix ?? 'finance.payments'; $permissionPrefix = $permissionPrefix ?? 'finance.payments'; $stats = $stats ?? []; $filters = $filters ?? []; if (!isset($records)) { $records = new \Illuminate\Pagination\LengthAwarePaginator([], 0, 15); } @endphp @include('institution.crud.index', compact('breadcrumbs', 'columns')) @endsection