@extends('layouts.customer') @section('title','Payment History') @section('page-title','Payment History') @section('styles') @endsection @section('content')

πŸ’° Payment History

{{-- DONATION TAB --}}
πŸ“€ Export CSV
@forelse($donations as $d) @empty @endforelse
Transaction ID Date Customer Amount Email / Phone Type Anonymous
{{ $d->donation_id }} {{ $d->created_at->format('Y-m-d') }} @if($d->anonymous) Anonymous @else {{ $d->donor_name ?? $d->business_name ?? 'β€”' }} @endif ${{ number_format($d->amount,2) }} @if($d->anonymous) β€” @else {{ $d->email ?: ($d->contact ?: 'β€”') }} @endif {{ ucfirst($d->type) }}
{{ $d->anonymous ? 'Hidden' : 'Shown' }}
No donations found
{{ $donations->appends(request()->except('pre_page'))->links() }}
{{-- PREPAYMENT TAB --}}
πŸ“€ Export CSV
@forelse($prepayments as $p) @empty @endforelse
Invoice # Date Customer Amount (ex GST) GST (10%) Total (inc GST) Action
{{ $p->invoice_no }} {{ $p->created_at->format('Y-m-d') }} {{ $p->customer_name }} ${{ number_format($p->amount_ex_gst,2) }} ${{ number_format($p->gst,2) }} ${{ number_format($p->amount,2) }} πŸ“„ View
No prepayments found
{{ $prepayments->appends(request()->except('don_page'))->links() }}
@endsection @section('scripts') @endsection