@extends('layouts.app') @section('title', 'Invoices API Documentation') @section('content')

Student Invoices

Endpoint: GET /api/academy/invoices

← Back to Dashboard
@if(isset($data['success']) && $data['success'] && isset($data['data'])) @if(isset($data['summary']))
₨ {{ number_format($data['summary']['total_invoiced'] ?? 0) }}
Total Invoiced
₨ {{ number_format($data['summary']['total_paid'] ?? 0) }}
Total Paid
₨ {{ number_format($data['summary']['total_balance'] ?? 0) }}
Total Balance
{{ $data['summary']['total_invoices'] ?? 0 }}
Invoices
@endif
@foreach($data['data'] as $invoice) @endforeach
Invoice # Date Amounts Status
{{ $invoice['invoice_no'] }}
{{ $invoice['payment_mode'] ?? 'N/A' }}
{{ \Carbon\Carbon::parse($invoice['invoice_date'])->format('M d, Y') }} ₨ {{ number_format($invoice['invoice_amount']) }} Paid: ₨ {{ number_format($invoice['paid']) }} Balance: ₨ {{ number_format($invoice['balance']) }} {{ $invoice['status'] }}
@if(isset($data['meta']))
Showing {{ $data['meta']['per_page'] ?? count($data['data']) }} out of {{ $data['meta']['total'] ?? count($data['data']) }} results Page {{ $data['meta']['current_page'] ?? 1 }} of {{ $data['meta']['last_page'] ?? 1 }}
@endif @else
Failed to parse valid invoices data.
@endif
@endsection