{{-- resources/views/guests/statement.blade.php --}} @extends('layouts.app') @section('title', 'Statement — ' . $guest->first_name . ' ' . $guest->last_name) @section('page_title', 'Guest Statement') @section('page_subtitle', $guest->first_name . ' ' . $guest->last_name) @section('content')
← Guest Profile
{{-- Summary --}}
${{ number_format($totalInvoiced, 2) }}
Total Invoiced
${{ number_format($totalPaid, 2) }}
Total Paid
${{ number_format($totalOutstanding, 2) }}
Outstanding
{{-- Invoices --}}
Invoice History
@if($invoices->isEmpty())

No invoices yet

@else
@foreach($invoices as $inv) @endforeach
Invoice # Date Due Total Paid Balance Status
{{ $inv->invoice_number }} {{ $inv->invoice_date->format('d M Y') }} {{ $inv->due_date->format('d M Y') }} {{ $inv->currency }} {{ number_format($inv->total_amount, 2) }} {{ $inv->currency }} {{ number_format($inv->amount_paid, 2) }} @if($inv->balance_due > 0) {{ $inv->currency }} {{ number_format($inv->balance_due, 2) }} @else Paid @endif {{ $inv->status }}
@endif
@endsection