{{ __('Self-Payment History') }}

Self-Payment History

View all your self-payments for {{ $employee->business->name }}

Back to Self-Payment
@if(count($payment_history) > 0)
@php $totalPayments = count($payment_history); $completedPayments = collect($payment_history)->where('status', 'Completed')->count(); $totalAmount = collect($payment_history)->where('status', 'Completed')->sum('amount'); $pendingPayments = collect($payment_history)->where('status', 'Pending')->count(); @endphp
{{ $totalPayments }}
Total Payments
{{ $completedPayments }}
Completed
${{ number_format($totalAmount, 2) }}
Total Paid
{{ $pendingPayments }}
Pending

Payment Records

@foreach($payment_history as $payment) @endforeach
Payment ID Date Amount Status Payment Method Plan Period Transaction Ref
#{{ $payment['id'] }} {{ $payment['paid_at'] ?? 'Pending' }} ${{ number_format($payment['amount'], 2) }} {{ $payment['status'] }} {{ str_replace('_', ' ', $payment['payment_method']) }} {{ $payment['business_plan']['starts_at'] }} - {{ $payment['business_plan']['ends_at'] }}
({{ $payment['business_plan']['duration_months'] }} month{{ $payment['business_plan']['duration_months'] > 1 ? 's' : '' }})
{{ $payment['transaction_reference'] ?? 'N/A' }}
@else

No payment history

You haven't made any self-payments yet.

Make Your First Self-Payment
@endif