@extends('layouts.portal') @section('content')

Invoices & Payments

View pending and paid invoices for yourself and your family.

@if($invoices->isEmpty())
No invoices found yet.
@else
@foreach($invoices as $invoice) @endforeach
Date For Student Description Amount Status Action
{{ $invoice->created_at->format('M d, Y') }} {{ $invoice->member->name }}
{{ $invoice->description }}
{{ ucfirst($invoice->type) }} @if($invoice->payer_id !== auth()->id()) · Payer: {{ $invoice->payer->name }} @endif
£{{ number_format($invoice->effectiveTotal(), 2) }}
@if((float) $invoice->fee_amount > 0)
£{{ number_format((float) $invoice->amount, 2) }} + £{{ number_format((float) $invoice->fee_amount, 2) }} fee
@endif
@if($invoice->status === 'paid') Paid @if($invoice->payment_method) ({{ ucfirst(str_replace('_', ' ', $invoice->payment_method)) }}) @endif @elseif($invoice->status === 'cancelled') Cancelled @else Pending @endif @if($invoice->status === 'pending') Pay Now @elseif($invoice->status === 'paid' && $invoice->paid_at) {{ $invoice->paid_at->format('M d, Y') }} @endif
{{ $invoices->links() }}
@endif
@endsection