{{-- resources/views/invoicing/payments/index.blade.php --}} @extends('layouts.app') @section('title', 'Payments') @section('page_title', 'Payments') @section('page_subtitle', 'All recorded payments') @section('content')
{{-- Today total --}}
Today ${{ number_format($totalToday, 2) }}
Record Payment
Payments {{ $payments->total() }} total
@if($payments->isEmpty())

No payments found

@else
@foreach($payments as $payment) @endforeach
Reference Guest Invoice Method Amount Date Status
{{ $payment->reference }} @if($payment->guest) {{ $payment->guest->first_name }} {{ $payment->guest->last_name }} @else — @endif @if($payment->invoice) {{ $payment->invoice->invoice_number }} @else — @endif {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} {{ $payment->currency }} {{ number_format($payment->amount, 2) }} {{ $payment->paid_at?->format('d M Y H:i') }} {{ $payment->status }} View →
@if($payments->hasPages())
{{ $payments->links() }}
@endif @endif
@endsection