@extends('layouts.portal') @section('content')
View pending and paid invoices for yourself and your family.
| 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 |