@extends('backend.student_backend.student_dashboard') @section('student')
{{-- ===================================================== PRINT BUTTON ====================================================== --}}
{{-- ===================================================== INVOICE ====================================================== --}}
{{-- ================================================= HEADER ================================================== --}}
Student Fee Invoice
Academic Session: {{ $currentSession->name }}
Term: {{ $currentTerm->name }}
INVOICE
{{ now()->format('d M Y') }}
{{-- ================================================= STUDENT INFORMATION ================================================== --}}
Student Information

Name: {{ $student->name ?? 'N/A' }}

Student ID: {{ $student->user?->user_name ?? 'N/A' }}

Class: {{ $bill?->studentClass?->class_name ?? 'N/A' }}

Billing Period

{{ $currentTerm->name }}

{{ $currentSession->name }}

{{-- ================================================= BILL BREAKDOWN ================================================== --}}
{{-- ===================================== PREVIOUS OUTSTANDING ====================================== --}} @if($previousOutstanding > 0) @endif {{-- ===================================== CURRENT TUITION ====================================== --}} {{-- ===================================== CURRENT TRANSPORT ====================================== --}} {{-- ===================================== CURRENT OTHERS ====================================== --}} {{-- ===================================== CURRENT BOARDING ====================================== --}} {{-- ===================================== PREVIOUS ADVANCE APPLIED ====================================== --}} @if($advanceAppliedToCurrentBill > 0) @endif {{-- ===================================== CURRENT BILL ====================================== --}} {{-- ===================================== PAYMENT MADE ====================================== --}} {{-- ===================================== CURRENT ADVANCE ====================================== --}} @if($currentAdvance > 0) @endif {{-- ===================================== REMAINING PREVIOUS ADVANCE ====================================== --}} @if($remainingPreviousAdvance > 0) @endif {{-- ===================================== OUTSTANDING BALANCE ====================================== --}}
Description Amount
Previous Outstanding {{ $previousTerm?->name }} - {{ $previousSession?->name }} ₦{{ number_format( $previousOutstanding, 2 ) }}
Tuition ₦{{ number_format( $tuition, 2 ) }}
Transport ₦{{ number_format( $transport, 2 ) }}
Others ₦{{ number_format( $others, 2 ) }}
Boarding ₦{{ number_format( $boarding, 2 ) }}
Previous Advance Payment Credit from {{ $previousTerm?->name }} - {{ $previousSession?->name }} -₦{{ number_format( $advanceAppliedToCurrentBill, 2 ) }}
Current Bill ₦{{ number_format( $currentBillTotal, 2 ) }}
Payment Made ₦{{ number_format( $currentPaymentApplied, 2 ) }}
Advance Payment ₦{{ number_format( $currentAdvance, 2 ) }}
Remaining Advance ₦{{ number_format( $remainingPreviousAdvance, 2 ) }}
Outstanding Balance ₦{{ number_format( $balance, 2 ) }}
{{-- ================================================= ADVANCE INFORMATION ================================================== --}} @if($advancePayment > 0)
Advance Payment Available
You have an advance payment of ₦{{ number_format( $advancePayment, 2 ) }} available as credit.
@endif {{-- ================================================= PAYMENT STATUS ================================================== --}}
@if($balance <= 0 && $advancePayment <= 0)
Fully Paid
@elseif($advancePayment > 0)
Fully Paid
The excess payment has been recorded as advance payment.
@else
Please settle your outstanding balance.
@endif
{{-- ================================================= FOOTER ================================================== --}}
This invoice was generated electronically.
@endsection