@extends('layouts.admin') @section('title', $resourceLabel ?? 'Receipts') @section('content') @php $breadcrumbs = [ ['label' => 'Home', 'href' => route('dashboard')], ['label' => 'Student Finance', 'href' => route('finance.dashboard')], ['label' => $resourceLabel ?? 'Receipts'], ]; $columns = [ ['key' => 'receipt_number', 'label' => 'Receipt #'], ['key' => 'amount', 'label' => 'Amount'], ['key' => 'issued_at', 'label' => 'Issued'], ['key' => 'receipt_status', 'label' => 'Status'], ]; $resourceLabel = $resourceLabel ?? 'Receipts'; $routePrefix = $routePrefix ?? 'finance.receipts'; $permissionPrefix = $permissionPrefix ?? 'finance.receipts'; $stats = $stats ?? []; $filters = $filters ?? []; if (!isset($records)) { $records = new \Illuminate\Pagination\LengthAwarePaginator([], 0, 15); } @endphp @include('institution.crud.index', compact('breadcrumbs', 'columns')) @endsection