@extends('layouts.beneficiary') @section('page-title', 'Dashboard') @section('vendor-content')
{{ __('Dashboard') }}
@csrf
@if (session('status')) @endif

Welcome, {{ Auth::user()->name }}!

Role: {{ Auth::user()->role }}

@if (Auth::user()->role === 'admin')
Admin Dashboard - Manage users, KYC approvals, and cards.
@elseif (Auth::user()->role === 'beneficiary')
Beneficiary Dashboard - View your wallet balance and cards.
@if (!Auth::user()->kyc || Auth::user()->kyc->status === 'rejected') Submit KYC @elseif (Auth::user()->kyc->status === 'pending')
Your KYC is under review.
@else
Your KYC is approved!
@endif
Your Sub-Wallets
@foreach (Auth::user()->wallet->subWallets as $subWallet)
{{ ucfirst($subWallet->category) }}

Balance: {{ $subWallet->balance }}

@endforeach
@elseif (Auth::user()->role === 'vendor')
Vendor Dashboard - Process transactions and view history.
@if (!Auth::user()->kyc || Auth::user()->kyc->status === 'rejected')
Your KYC is not verified. Please submit your KYC to start transacting.
@elseif (Auth::user()->kyc->status === 'pending')
Your KYC is under review. Transactions will be enabled once approved.
@else
Your KYC is approved! You can now process transactions.
@endif @endif
@endsection