{{-- resources/views/partials/dashboard/mobile_view.blade.php --}} {{-- Expects: - $financeUser - $walletBalance - $recentTransactions - $quickTransferContacts - $monthly_deposits - $monthly_expenses - $cards - $settings - $btc_rate --}} {{-- Mobile View - Enhanced Design --}}
Profile

{{ explode(' ', $financeUser->name)[0] }} {{ Auth::user()->lastname }}

@php $mobileUnreadCount = Auth::user()->notifications()->where('is_read', false)->count(); @endphp @if($mobileUnreadCount > 0) {{ $mobileUnreadCount > 9 ? '9+' : $mobileUnreadCount }} @endif

{{ $settings->site_name }} Bank

{{ Auth::user()->name }} {{ Auth::user()->lastname }}

Fiat Account

•••• {{ $walletBalance->cardLastFour }}

Available Balance

{{ $walletBalance->currency }}{{ number_format($walletBalance->amount_raw, 2) }}

{{ $walletBalance->currency }} ******

Active
Last updated: {{ now()->format('M d, H:i') }}

Bitcoin Wallet

{{ Auth::user()->name }} {{ Auth::user()->lastname }}

Crypto Account

BTC

Bitcoin Balance

{{ number_format(Auth::user()->btc_balance ?? 0, 6) }} BTC

••••••• BTC

≈ {{ $walletBalance->currency }}{{ number_format((Auth::user()->btc_balance ?? 0) * $btc_rate, 2) }}

1 BTC = {{ $walletBalance->currency }}{{ number_format($btc_rate, 0) }}
Live Rate

Swipe to switch between accounts

Notifications

@php $mobileUnreadNotifications = Auth::user()->notifications()->where('is_read', false)->count(); @endphp @if($mobileUnreadNotifications > 0)

{{ $mobileUnreadNotifications }} new notification{{ $mobileUnreadNotifications > 1 ? 's' : '' }}

@else

All caught up!

@endif
@php $mobileNotifications = Auth::user()->notifications()->latest()->take(8)->get(); @endphp @forelse($mobileNotifications as $notification)
@php $mobileIconClass = 'fa-solid fa-bell'; $mobileColorClass = 'primary'; switch($notification->type) { case 'success': $mobileIconClass = 'fa-solid fa-check-circle'; $mobileColorClass = 'green'; break; case 'warning': $mobileIconClass = 'fa-solid fa-exclamation-triangle'; $mobileColorClass = 'yellow'; break; case 'danger': $mobileIconClass = 'fa-solid fa-exclamation-circle'; $mobileColorClass = 'red'; break; case 'info': default: $mobileIconClass = 'fa-solid fa-info-circle'; $mobileColorClass = 'blue'; break; } @endphp

{{ $notification->title ?? 'Notification' }}

{{ $notification->message ?? 'You have a new notification.' }}

@if(!$notification->is_read)
@endif

{{ $notification->created_at->diffForHumans() }}

@if(!$notification->is_read) New @endif
@empty

No notifications yet

We'll notify you when something happens

@endforelse
@if($mobileNotifications->count() > 0)
View All
@endif

Quick Transfer

View All
@include('partials._dashboard_cards_section_mobile', ['cards' => $cards, 'settings' => $settings])
@include('partials._mobile_services_overview') @include('partials._mobile_financial_insights', [ 'monthly_deposits' => $monthly_deposits, 'monthly_expenses' => $monthly_expenses ]) @include('partials._mobile_activity_feed', [ 'recentTransactions' => $recentTransactions, 'settings' => $settings ]) @include('partials._mobile_support_widget', ['settings' => $settings])