{{ __('Payments') }}

@can('payments.manage') @endcan
@if ($showForm)

{{ __('Create Payment') }}

@error('contestant_id')

{{ $message }}

@enderror
@error('amount')

{{ $message }}

@enderror
@endif
@forelse ($payments as $payment) @empty @endforelse
{{ __('Receipt') }}{{ __('Contestant') }}{{ __('Prize') }}{{ __('Method') }}{{ __('Amount') }}{{ __('Paid at') }}{{ __('Status') }}
{{ $payment->receipt_number ?? '-' }} {{ $payment->contestant?->full_name }} {{ $payment->prize?->title ?? '-' }} {{ ucwords(str_replace('_', ' ', $payment->method)) }} {{ $payment->currency }} {{ number_format($payment->amount, 2) }} {{ $payment->paid_at?->format('M j, Y') ?? '-' }} {{ ucfirst($payment->status) }} @can('payments.manage') @if (in_array($payment->status, ['pending', 'processing'])) @endif @endcan
{{ __('No payments found.') }}
{{ $payments->links() }}