@extends('layout.app') @section('title', 'User Profile') @section('page-title', $user->name) @section('content')
{{ $user->name }}
{{ $user->email }} | Joined: {{ $user->created_at->format('M d, Y') }}
Current Wallet Balance

$ {{ number_format($user->wallet->balance ?? 0, 2) }}

@foreach($user->recoveryCases as $case) @php $percentage = $case->lost_amount > 0 ? ($case->recovered_amount / $case->lost_amount) * 100 : 0; @endphp @endforeach
Case # Lost Amount Recovered Recovery % Status Actions
{{ $case->case_number }} ${{ number_format($case->lost_amount,2) }} ${{ number_format($case->recovered_amount ?? 0,2) }}
{{ number_format($percentage,1) }}%
{{ ucfirst($case->status) }}
@if($case->status == 'pending')
@csrf
@csrf
@endif
@foreach($user->recoveryCases as $case) @foreach($case->settlements as $s) @endforeach @endforeach
Case # Amount Proof Status Actions
{{ $case->case_number }} ${{ number_format($s->amount, 2) }} @if($s->proof) View Proof @else No proof uploaded @endif {{ ucfirst($s->status) }} @if($s->status == 'pending')
@csrf
@csrf
@endif
@foreach($user->withdrawals as $w) @endforeach
Ref Amount Status Actions
{{ $w->reference }} ${{ number_format($w->amount, 2) }} {{ ucfirst($w->status) }} @if($w->status == 'pending')
@csrf
@csrf
@endif
{{ strtoupper($user->kyc_status) }}
@if($user->kyc_status !== 'approved')
@csrf
@csrf
@else
This user has been successfully verified.
@endif
@endsection