@extends('provider.layout') @section('title', 'Earnings & Wallet') @section('content') {{-- ══ PAGE HEADER ══ --}}
Real-time wallet balance, commission tracking, and payout management.
When you submit a payout, {!! \App\Helpers\CurrencyHelper::formatForProvider($stats['commission_due'], auth()->user()) !!} commission will be automatically deducted from your wallet balance and settled with admin. The remaining {!! \App\Helpers\CurrencyHelper::formatForProvider($stats['available'], auth()->user()) !!} will be sent to you.
Minimum payout: {!! \App\Helpers\CurrencyHelper::formatForProvider($minPayout, auth()->user()) !!} · Available: {!! \App\Helpers\CurrencyHelper::formatForProvider($stats['available'], auth()->user()) !!}
@endif @if($stats['available'] >= $minPayout) @php $exchangeRate = auth()->user()->business_currency->exchange_rate ?? 1.0; $currencyCode = auth()->user()->business_currency->code ?? \App\Helpers\CurrencyHelper::getBaseCurrencyCode(); $minPayoutConverted = floor($minPayout * $exchangeRate); $availableConverted = floor($stats['available'] * $exchangeRate); @endphp @else