SchoolERP Solutions

123 Education Street, Tech City

GSTIN: 12ABCDE3456F7G8

Email: billing@schoolerp.com | Phone: +91 98765 43210

INVOICE

#{{ $invoice_number }}

Date: {{ $invoice_date }}

{{ ucfirst($payment_status) }}

Bill To:

{{ $school->name }}

{{ $school->address ?? 'Address not available' }}

Email: {{ $school->email }}

Phone: {{ $school->phone ?? 'N/A' }}

Subscription Details:

Plan: {{ ucfirst($history->plan) }}

Period: {{ $history->start_date->format('M d, Y') }} - {{ $history->end_date->format('M d, Y') }}

Duration: {{ $history->duration_months }} month(s)

@if(isset($student_count) && $student_count > 0)

Students: {{ number_format($student_count) }}

Rate: ₹{{ number_format($monthly_rate ?? 0, 2) }}/student/month

@endif
@if(count($adjustments) > 0) @foreach($adjustments as $adj) @endforeach @endif @if($previous_balance != 0) @endif
Description Rate Qty Amount
{{ ucfirst($history->plan) }} Plan Subscription
{{ $plan_description }}
₹{{ number_format($monthly_rate, 2) }}/month {{ $history->duration_months }} ₹{{ number_format($base_amount, 2) }}
{{ $adj['description'] }} ₹{{ number_format($adj['monthly_rate'] ?? $adj['daily_rate'] ?? 0, 2) }}/{{ isset($adj['daily_rate']) ? 'day' : 'month' }} {{ $adj['months'] ?? $adj['days'] ?? 0 }} ₹{{ number_format($adj['amount'], 2) }}
{{ $previous_balance > 0 ? 'Previous Balance (Due)' : 'Previous Balance (Advance Credit)' }} {{ $previous_balance > 0 ? '+' : '-' }}₹{{ number_format(abs($previous_balance), 2) }}
Subtotal: ₹{{ number_format($subtotal, 2) }}
@if($discount_amount > 0)
Discount: -₹{{ number_format($discount_amount, 2) }}
@endif
Taxable Amount: ₹{{ number_format($taxable_amount, 2) }}
@if($apply_gst)
CGST (9%): ₹{{ number_format($gst_amount / 2, 2) }}
SGST (9%): ₹{{ number_format($gst_amount / 2, 2) }}
@endif
Grand Total: ₹{{ number_format($grand_total, 2) }}
Amount in words: {{ $amount_in_words }}

Terms & Conditions:

1. Payment is due within 15 days of invoice date.

2. This is a computer-generated invoice.

3. Please quote invoice number in all correspondence.

@if($invoice_notes)

Notes: {{ $invoice_notes }}

@endif