@php $user = $author; $totalWithdrawals = $user->withdrawals()->success()->sum('amount'); $bsColClass = $user->is_author ? 'col-lg-3' : 'col-lg-4'; @endphp
@if (auth()->user()->is_author) @php $currentLevel = $user->currentAuthorLevel->first(); @endphp
@lang('Author Level')
{{ __(@$currentLevel->name ?? 'N/A')}}
@else
@lang('Balance')
{{ showAmount($user->balance) }}
@endif @if (auth()->user()->is_author)
@lang('Sale Amount')
{{ showAmount($saleAmount) }}
@endif
@lang('Purchase Amount')
{{ showAmount($totalPurchaseAmount) }}
@lang('Withdrawals')
{{ showAmount($totalWithdrawals) }}