@section('title', __('Payment Split (Asaas)'))
{{-- status --}}

{{ __('Status') }}


{{-- Asaas fees (live, from /myAccount/fees) --}}

{{ __('Asaas fees (live)') }}

· {{ __('fetched from Asaas, updated automatically') }}
@php $p = data_get($fees, 'payment', []); $t = data_get($fees, 'transfer', []); $pix = data_get($p, 'pix', []); $cc = data_get($p, 'creditCard', []); $dc = data_get($p, 'debitCard', []); @endphp @if (empty($fees))

{{ __('No fee data yet (set the API key on the payment method first).') }}

@else

PIX

R$ {{ number_format((float) data_get($pix, 'fixedFeeValue', 0), 2, ',', '.') }} @if (data_get($pix, 'fixedFeeValueWithDiscount') !== null) ({{ __('disc.') }} R$ {{ number_format((float) data_get($pix, 'fixedFeeValueWithDiscount', 0), 2, ',', '.') }}) @endif

{{ __('free/month') }}: {{ data_get($pix, 'monthlyCreditsWithoutFee', '—') }}

{{ __('Credit card (1x)') }}

{{ number_format((float) (data_get($cc, 'hasValidDiscount') ? data_get($cc, 'discountOneInstallmentPercentage', 0) : data_get($cc, 'oneInstallmentPercentage', 0)), 2, ',', '.') }}% + R$ {{ number_format((float) data_get($cc, 'operationValue', 0), 2, ',', '.') }}

{{ __('up to') }} {{ number_format((float) data_get($cc, 'upToTwentyOneInstallmentsPercentage', 0), 2, ',', '.') }}%

@if (data_get($cc, 'discountExpiration'))

{{ __('disc. until') }} {{ \Illuminate\Support\Str::substr(data_get($cc, 'discountExpiration'), 0, 10) }}

@endif

{{ __('Debit card') }}

{{ number_format((float) data_get($dc, 'defaultPercentage', 0), 2, ',', '.') }}% + R$ {{ number_format((float) data_get($dc, 'operationValue', 0), 2, ',', '.') }}

{{ __('Withdrawal / transfer') }}

PIX R$ {{ number_format((float) data_get($t, 'pix.feeValue', 0), 2, ',', '.') }} · TED R$ {{ number_format((float) data_get($t, 'ted.feeValue', 0), 2, ',', '.') }}

{{ __('free/month') }}: {{ data_get($t, 'monthlyTransfersWithoutFee', '—') }}

{{ __('The Asaas fee is deducted from the amount before the split; the driver receives their % over the net.') }} · {{ __('Split out') }}: R$ {{ number_format((float) data_get($stats, 'split.outcome', 0), 2, ',', '.') }} · {{ __('Payments net') }}: R$ {{ number_format((float) data_get($stats, 'payment.netValue', 0), 2, ',', '.') }}

@endif

{{-- config --}}

{{ __('Split configuration') }}

{{ $commission }}% {{ __('edit in Finance settings') }}

{{ __('Derived from the global driver share; individual value in the driver profile overrides it.') }}


@error('pixExpireMinutes')

{{ $message }}

@enderror

{{ __('Countdown shown on the in-app PIX screen.') }}

{{ __('Global for now; per-region in the future.') }}

{{ __('Save') }}

{{-- dynamic payment example --}}

{{ __('Payment example') }}

· {{ __('what stays with the platform vs the driver') }}
@foreach (['PIX' => 'PIX', 'CREDIT_CARD' => __('Credit card')] as $bt => $label) @php($s = $sim[$bt] ?? ['fee' => 0, 'net' => 0, 'platform' => 0, 'driver' => 0, 'days' => 0])

{{ $label }}

{{ __('Gross') }}R$ {{ number_format($amount, 2, ',', '.') }}
{{ __('Asaas fee') }}- R$ {{ number_format($s['fee'], 2, ',', '.') }}
{{ __('Net') }}R$ {{ number_format($s['net'], 2, ',', '.') }}
{{ __('Platform') }} ({{ $commission }}%)R$ {{ number_format($s['platform'], 2, ',', '.') }}
{{ __('Driver receives') }}R$ {{ number_format($s['driver'], 2, ',', '.') }}
{{ __('Release') }} @if ($s['days'] <= 0) {{ __('immediate') }} @else {{ __('in') }} {{ $s['days'] }} {{ __('days') }} @endif @if ($bt === 'CREDIT_CARD') · {{ __('or via anticipation (extra fee)') }} @endif
@endforeach

{{-- drivers recebedor oversight --}}

{{ __('Drivers — recebedor status') }}

{{ __('Create for all with CPF') }}
@foreach ($drivers as $d) @endforeach
{{ __('Driver') }} {{ __('CPF') }} {{ __('Recebedor wallet') }}
{{ $d->name }} · {{ $d->email }} {{ $d->cpf ?? '—' }} @if ($d->asaas_wallet_id) {{ Str::limit($d->asaas_wallet_id, 18) }} @else {{ __('none') }} @endif @if (!$d->asaas_wallet_id && $d->cpf) {{ __('Create') }} @endif