@extends('layouts.seller.app', ['page' => $menuSeller['wallet']['active'] ?? '', 'sub_page' => $menuSeller['wallet']['route']['balance']['sub_active']]) @section('title', __('labels.wallet_balance')) @section('header_data') @php $page_title = __('labels.wallet_balance'); $page_pretitle = __('labels.seller') . ' ' . __('labels.wallet'); @endphp @endsection @php use App\Support\Currency\CurrencyDisplay; $walletCurrencyCode = strtoupper((string) ($wallet?->currency_code ?? ($systemSettings['currency'] ?? ''))); $walletMoney = fn ($amount) => CurrencyDisplay::format($amount, $walletCurrencyCode, $systemSettings['currencySymbol'] ?? null); $breadcrumbs = [ ['title' => __('labels.home'), 'url' => route('seller.dashboard')], ['title' => __('labels.wallet'), 'url' => ''], ]; @endphp @section('seller-content')

{{ __('labels.wallet_balance') }}

{{ __('labels.current_balance') }}

{{ __('labels.available_for_withdrawal') }}
{{ $wallet ? $walletMoney($wallet->balance - $wallet->blocked_balance) : $walletMoney(0) }}
@if ($requestWithdrawPermission ?? false) @endif

{{ __('labels.wallet_information') }}

{{ __('labels.wallet_id') }} {{ $wallet ? $wallet->id : 'N/A' }}
{{ __('labels.blocked_balance') }} {{ $wallet ? $walletMoney($wallet->blocked_balance) : $walletMoney(0) }}
{{ __('labels.currency') }} {{ $walletCurrencyCode }}
{{ __('labels.last_updated') }} {{ $wallet ? $wallet->updated_at->format('d M Y, H:i') : 'N/A' }}
@endsection