{{-- Filter & Actions Panel --}}

{{ __('Payments') }}

{{ __('Track payments, refunds, and transaction history.') }}

{{ __('Download Template') }}
{{ __('Reset') }}
{{-- Payments Table Panel --}}

{{ __('Payment Directory') }}

{{ __('Showing') }} {{ $payments->firstItem() ?? 0 }}-{{ $payments->lastItem() ?? 0 }} {{ __('of') }} {{ $payments->total() }} {{ __('transactions.') }}

{{ __('Export') }}
{{-- List View --}}
@forelse($payments as $payment) {{-- Refund confirmation modal --}} @if($payment->status === 'succeeded' && !$payment->refund_amount)
@csrf

{{ __('Refund') }} @currency($payment->amount)?

{{ __('This will issue a') }} {{ __('full refund') }} {{ __('of') }} @currency($payment->amount) {{ __('to') }} {{ $payment->workspace?->name ?? __('this customer') }}. {{ __('This action cannot be undone.') }}

@endif @empty @endforelse
{{ __('Invoice') }} {{ __('User') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Date') }} {{ __('Actions') }}
{{ $payment->stripe_payment_id ?? '#' . $payment->id }} {{ $payment->workspace?->name ?? __('N/A') }} @currency($payment->amount) {{ ucfirst($payment->status) }} {{ $payment->created_at->format('M j, Y') }}
@if($payment->status === 'succeeded' && !$payment->refund_amount) @endif
{{ __('No payments found.') }}
{{-- Grid View --}}
@forelse($payments as $payment)
{{ $payment->workspace?->name ?? __('N/A') }} @currency($payment->amount)
{{ ucfirst($payment->status) }} {{ $payment->created_at->format('M j, Y') }}
{{ $payment->stripe_payment_id ?? '#' . $payment->id }} @if($payment->status === 'succeeded' && !$payment->refund_amount)
@endif
@empty
{{ __('No payments found.') }}
@endforelse
@if($payments->hasPages())
{{ $payments->withQueryString()->links() }}
@endif
{{-- Import Modal --}}
@csrf

{{ __('Import Payments') }}

{{ __('Upload a CSV file that matches the provided template.') }}