@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')

User Information

@if($user->photo) Photo @else
{{ strtoupper(mb_substr($user->name, 0, 1)) }}
@endif

{{$user->name}}

{{ $user->getRoleNames()->implode(', ') }}

Email: {{$user->email}}
Phone: {{$user->phone ?? 'N/A'}}
NID: {{$user->nid ?? 'N/A'}}
DOB: @if(!empty($user->dob)) {{ $user->dob }} @else N/A @endif
Address: {{$user->address ?? 'N/A'}}
Status: @if($user->status == 'active') Active @else Inactive @endif
Joined: {{$user->created_at}}

Trusted Devices

@if($devices->count() > 0)
@foreach($devices as $device)
@if(stripos($device->device_name, 'mobile') !== false || stripos($device->platform, 'android') !== false || stripos($device->platform, 'ios') !== false) @else @endif {{ $device->device_name ?? 'Unknown Device' }}
@if($device->is_trusted) Trusted @endif

{{ $device->browser ?? 'Unknown Browser' }}

{{ $device->platform ?? 'Unknown OS' }}

{{ $device->ip_address ?? 'N/A' }}

Last Used: {{ $device->last_used_at ? $device->last_used_at->diffForHumans() : 'Never' }}

@endforeach
@else
No trusted devices found. When this user logs in from a new device, it will appear here after OTP verification.
@endif
@endsection