@php use App\Constants\CurrencyRole; @endphp @extends('frontend.layouts.user.index') @section('title', __('My Wallets')) @section('content')
{{ __('Wallet PIN') }}
@forelse($wallets as $wallet) @php $amountColor = $wallet->latestTransaction?->amount_flow->color($wallet->latestTransaction->status); $amountSign = $wallet->latestTransaction?->amount_flow->sign($wallet->latestTransaction->status); $receiveMoneyUrl = $wallet->receiveMoneyUrl(); $formattedWalletId = implode(' ', str_split($wallet->uuid, 3)); $isDefaultWallet = $wallet->currency->code === siteCurrency(); @endphp
{{ $wallet->currency->code }}
{{ $wallet->currency->code }}
@if($isDefaultWallet) {{ __('Default') }} @endif

{{ __('Wallet ID') }} {{ $formattedWalletId }}

{{ __('Balance') }}
{{ $wallet->currency->symbol }}{{ number_format($wallet->balance,siteDecimalPlaces()) }}

1 {{ siteCurrency() }} = {{ $wallet->currency->exchange_rate }} {{ $wallet->currency->code }}

@foreach($wallet->currency->activeRoles as $role)
@endforeach
@if($wallet->status && $wallet->is_sender) @endif @empty
@endforelse
@endsection