Payouts

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif {{-- ── Ready to Pay ── --}}

Ready to Pay

@if($readyAffiliates->isEmpty())
No affiliates with approved earnings at this time.
@else
@foreach($readyAffiliates as $affiliate) @endforeach
Affiliate PayPal Email Orders Amount Actions
{{ $affiliate->name }} #{{ $affiliate->referral_id }} @if($affiliate->paypal_email) {{ $affiliate->paypal_email }} @else No PayPal email @endif {{ $affiliate->approved_order_count }} ${{ number_format($affiliate->approved_commission, 2) }} @if($affiliate->paypal_email)
@csrf
@else Missing PayPal email @endif
@endif
{{-- ── Payout History ── --}}

Payout History

@forelse($payouts as $payout) @empty @endforelse
ID Affiliate PayPal Email Orders Amount Status Generated Actions
#{{ $payout->id }} {{ $payout->affiliate->name }} {{ $payout->paypal_email }} {{ $payout->order_count }} ${{ number_format($payout->amount, 2) }} @if($payout->status === 'paid') Paid @if($payout->paid_at) {{ $payout->paid_at->format('M j, Y') }} @endif @else Unpaid @endif {{ $payout->created_at->format('M j, Y') }} @if($payout->status === 'unpaid')
@csrf {{-- Confirm modal --}}

Confirm Payment

Mark ${{ number_format($payout->amount, 2) }} payout to {{ $payout->affiliate->name }} as paid?

@else @endif
No payouts yet.
@if($payouts->hasPages())
{{ $payouts->links() }}
@endif