{{-- Shared Agent Payout form. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $agents, $available, $methods, $statuses, $nextRef. --}} @php $requestedOn = old('requested_on', $item && $item->requested_on ? $item->requested_on->format('Y-m-d') : date('Y-m-d')); @endphp
{{-- "Available" is the wallet balance less payouts already requested, so the same commission cannot go out twice. --}} {{ ___('admin.only_approved_commissions_are_withdrawable_262b48') }} @error('agent_id') {{ $message }} @enderror
@error('reference') {{ $message }} @enderror
@error('amount') {{ $message }} @enderror
@error('method') {{ $message }} @enderror
@error('account_details') {{ $message }} @enderror
@error('requested_on') {{ $message }} @enderror
{{-- Setting this to Paid here does the same as the Mark paid button: the wallet is debited and the payment is posted. --}} {{ ___('admin.paid_debits_the_wallet_and_posts_the_cash_payment_6c50b1') }} @error('status') {{ $message }} @enderror
@error('note') {{ $message }} @enderror
{{ ___('label.cancel') }}