@extends('layouts.master') @section('page_title', 'Student Billing Report') @section('content')
@if($termId) Term: {{ $terms->firstWhere('id', $termId)->name ?? 'Unknown' }} @else All Terms @endif
Generated: {{ Carbon\Carbon::now()->format('M d, Y g:i A') }}
Total Bills: {{ $studentBills->count() }}
Total Billed
Total Paid
Total Discounts
Outstanding
ID: {{ $bill->student_username }} | Class: {{ $bill->class_name }}{{ $bill->section_name ? ' - ' . $bill->section_name : '' }}
Bill Total
| Item | Amount |
|---|---|
| {{ $item->name }} | ${{ number_format($item->amount, 2) }} |
| Subtotal | ${{ number_format($bill->items->sum('amount'), 2) }} |