@extends('layouts.app') @section('title', 'Fee Setup') @php $students = \App\Models\Student::where('status', 'active')->orderBy('first_name')->get(['id', 'first_name', 'surname', 'admission_no', 'class_id']); $termInvoices = \Illuminate\Support\Facades\DB::table('invoices') ->join('students', 'students.id', '=', 'invoices.student_id') ->leftJoin('school_classes', 'school_classes.id', '=', 'students.class_id') ->where('invoices.term', $term)->where('invoices.year', $year) ->select('invoices.*', \Illuminate\Support\Facades\DB::raw("CONCAT(students.first_name,' ',students.surname) as student_name"), 'students.admission_no', 'school_classes.name as class_name') ->orderByDesc('invoices.id')->limit(100)->get(); @endphp @section('content')
| Invoice | Learner | Class | Total | Discount | Paid | Balance | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_no ?? '#'.$invoice->id }} | {{ $invoice->student_name }} {{ $invoice->admission_no }} |
{{ $invoice->class_name }} | {{ money($invoice->total) }} | {{ money($invoice->discount) }} | {{ money($invoice->paid) }} | {{ money($invoice->balance) }} | ||
| Name | Type | Category | Priority | System | Actions |
|---|---|---|---|---|---|
| {{ $votehead->name }} | {{ $votehead->type }} | {{ $votehead->category ?: '—' }} | {{ $votehead->priority }} | {!! $votehead->is_system ? 'System' : 'Custom' !!} | @if(!$votehead->is_system) @endif |
| Account | Term | Year | Amount | Reference | Status |
|---|---|---|---|---|---|
| {{ $allocation->account }} | {{ $allocation->term }} | {{ $allocation->year }} | {{ money($allocation->amount) }} | {{ $allocation->reference ?: '—' }} | |