{{-- admin/users/detail.blade.php | Obrempong | Jcode --}} @extends('layouts.admin') @section('title', 'User: ' . $user->name) @section('content')
Back Edit User @if($user->status==='active') @else
@csrf
@endif
{{-- Activity Tabs --}}
@foreach(['transactions'=>'Transactions','withdrawals'=>'Withdrawals','tasks'=>'Tasks'] as $tab=>$label) @endforeach
{{-- Transactions --}}
@forelse($transactions as $tx) @empty @endforelse
TypePointsDescriptionDate
{{ ucfirst($tx->type) }} {{ $tx->points>=0?'+':'' }}{{ number_format($tx->points) }} {{ $tx->description }} {{ $tx->created_at->format('d M Y H:i') }}
No transactions.
{{-- Withdrawals --}} {{-- Tasks --}}
{{-- Profile Sidebar --}}
{{ $user->name }}
{{ $user->email }}
{{ ucfirst($user->status) }} {{ $user->level }}
@foreach(['Points'=>number_format($user->points).' pts','Total Earned'=>number_format($user->total_earned_points).' pts','Cedis Balance'=>'GH₵'.number_format($user->cedis_balance,2),'Total Withdrawn'=>'GH₵'.number_format($user->total_withdrawn,2),'Referral Code'=>$user->referral_code,'Device'=>$user->device_type??'—','Last IP'=>$user->last_ip??'—','Last Login'=>$user->last_login_at?->format('d M Y H:i')??'Never','Joined'=>$user->created_at->format('d M Y')] as $lbl=>$val)
{{ $lbl }}{{ $val }}
@endforeach
{{-- Ban Modal --}} @endsection @push('scripts') @endpush