@extends('layouts.admin') @section('title', $customer->name) @section('actions') ← Users @endsection @section('content')

Profile & Security

Email: {{ $customer->email }}

Phone: {{ $customer->phone ?: '—' }}

Role: {{ $customer->role }}

2FA: {{ $customer->hasTwoFactor() ? 'Enabled' : 'Not enabled' }}

Last Login: {{ $customer->last_login_at?->format('d M Y, h:i A') ?: 'Never' }}

Last IP: {{ $customer->last_login_ip ?: '—' }}

@if($customer->isLocked())

Locked until {{ $customer->locked_until->format('d M Y, h:i A') }}

@endif
@if(auth()->user()->isAdmin())

Admin Controls

@csrf
@csrf
@if($customer->isLocked() || $customer->failed_login_attempts > 0)
@csrf
@endif @if($customer->hasTwoFactor() && $customer->id !== auth()->id())
@csrf
@endif
@endif

Recent Orders

@forelse($customer->orders as $o)
#{{ $o->number }} {{ $o->created_at->format('d M Y') }}
{{ money($o->total) }}
@empty

No orders yet.

@endforelse

Recent Audit Trail

@forelse($auditLogs as $log)
{{ $log->event }} — {{ $log->description }}
{{ $log->created_at?->diffForHumans() }}
@empty

No audit events recorded.

@endforelse
@endsection