@extends('layouts.school') @section('title', 'Subscription & Billing') @section('header', 'Subscription & Billing') @section('content') @if(session('success'))
Plan
{{ $currentSubscription->plan?->name ?? '—' }}
Status
{{ ucfirst($currentSubscription->status->value) }}Starts
{{ optional($currentSubscription->starts_at)->toDateString() }}
Ends / renews
{{ optional($currentSubscription->ends_at)->toDateString() }}
Last paid
₦{{ number_format((float) $currentSubscription->payment_amount, 2) }}
Days remaining
@if($days < 0) Expired {{ abs($days) }}d ago @elseif($days === 0) Due today @else {{ $days }} days @endif
No active subscription yet — choose a plan below to get started.
@endif{{ $invoice->invoice_ref }}
{{ $invoice->subscription?->plan?->name ?? 'Subscription' }} · {{ number_format($invoice->total, 2) }} {{ $invoice->currency }}
{{ $invoice->invoice_ref }}
{{ $invoice->subscription?->plan?->name ?? 'Subscription' }} · {{ optional($invoice->period_start)->format('d M Y') }} → {{ optional($invoice->period_end)->format('d M Y') }}
₦{{ number_format((float) $invoice->total, 2) }}
{{ ucfirst($invoice->status) }}{{ $plan->description }}
@if($plan->billingType() === 'trial') Free @elseif($plan->billingType() === 'per_student') ₦{{ number_format((float) ($plan->per_student_price ?? 0), 0) }}/student @else ₦{{ number_format($plan->price, 0) }}/month @endif
@if($quote)Quote today: ₦{{ number_format($quote['total'], 2) }}
{{ $quote['period_start'] }} – {{ $quote['period_end'] }}
@endifPrices are snapshot when you pay. Per-student plans bill the number of active students at that time.
Usage counts your active student, teacher and class records.
@elseNo plan assigned.
@endif