@extends('layouts.admin') @section('title', 'Payouts') @section('header', 'Payout Management') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', '?'); $activeGatewaySupportsAutomation = \App\Support\GatewayRegistry::supportsAutomatedPayout($activeGateway ?? null); @endphp @section('content')

Store Payouts

{{ $currencySymbol }}{{ number_format($pendingRestaurantAmount, App\Models\AppSetting::currencyDecimals()) }}

Pending for stores

Driver Payouts

{{ $currencySymbol }}{{ number_format($pendingDriverAmount, App\Models\AppSetting::currencyDecimals()) }}

Pending for drivers

Total Completed

{{ $currencySymbol }}{{ number_format($payouts->where('status', 'completed')->sum('amount'), App\Models\AppSetting::currencyDecimals()) }}

Successfully paid

Total Pending

{{ $currencySymbol }}{{ number_format($pendingRestaurantAmount + $pendingDriverAmount, App\Models\AppSetting::currencyDecimals()) }}

Awaiting processing
Payout Schedule: {{ ucfirst($payoutFrequency ?? 'weekly') }} @if($payoutFrequency == 'weekly') on {{ ucfirst($payoutDay ?? 'Monday') }}s @endif
Auto-generated based on schedule
@if(!$activeGatewaySupportsAutomation)
Manual settlement active. {{ \App\Support\GatewayRegistry::automatedPayoutUnavailableMessage($activeGateway) }}
@endif
@forelse($payouts as $payout) @empty @endforelse
ID Type Recipient Period Amount Deduction Net Amount Status Transaction ID Processed At Actions
#{{ $payout->id }} @if($payout->restaurant_id) Restaurant @if(Str::startsWith((string) $payout->idempotency_key, 'manual_restaurant_')) Manual request @endif @else Driver @endif
{{ $payout->restaurant->name ?? $payout->driver->name ?? 'N/A' }} @if($payout->restaurant && $payout->restaurant->owner) {{ $payout->restaurant->owner->email ?? '' }} @endif
{{ \Carbon\Carbon::parse($payout->period_start)->format('d M Y') }} to {{ \Carbon\Carbon::parse($payout->period_end)->format('d M Y') }}
{{ $currencySymbol }}{{ number_format($payout->amount, App\Models\AppSetting::currencyDecimals()) }} @if($payout->deduction_amount > 0) -{{ $currencySymbol }}{{ number_format($payout->deduction_amount, App\Models\AppSetting::currencyDecimals()) }} @if($payout->deduction_revoked_at) @endif @else - @endif {{ $currencySymbol }}{{ number_format($payout->amount - ($payout->deduction_amount ?? 0), App\Models\AppSetting::currencyDecimals()) }} @if($payout->status == 'pending') Pending @elseif($payout->status == 'completed') Completed @elseif(in_array($payout->status, ['processing', 'queued'])) Processing @else Failed @endif {{ $payout->transaction_id ?? '-' }} {{ $payout->processed_at ? $payout->processed_at->format('d M Y') : '-' }}
@if($payout->status == 'pending') @endif

No payouts found

Generate payouts to get started
@endsection