@props(['wallet', 'type', 'user']) @php $url = match($type){ 'send' => route('user.wallet.send.index' , $wallet->coin?->symbol), 'receive' => route('user.wallet.deposit.index' , $wallet->coin?->symbol), default => route('user.wallet.coin.index', $wallet->coin?->symbol) } @endphp
{{-- Left Section: Logo + Names --}}
{{ $wallet->coin?->symbol }} Logo
{{ ucfirst($wallet->coin?->name) }}
{{ strtoupper($wallet->coin?->symbol) }}
{{ coin_format($wallet->balance, $wallet->coin?->digits) }}
{{ fiat_format($wallet->convertedBalance($user->userCurrency)) }} {{ $user->userCurrency }}
{{-- Right Section --}}
{{-- Only show balance if NOT receive --}} {{-- Action text --}}
@if($type == 'receive') Deposit @elseif($type == 'send') Send @else View @endif