@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
@if(Auth::user()->photo) {{ Auth::user()->name }} @else {{ Auth::user()->name }} @endif

{{ Auth::user()->name }}

{{ Auth::user()->email }}

{{ Auth::user()->phone ?? 'N/A' }}

{{ Auth::user()->getRoleNames()->implode(', ') }}

Personal Information
Full Name
{{ Auth::user()->name }}
Email/Username
{{ Auth::user()->email }}
Phone
{{ Auth::user()->phone ?? 'N/A' }}
NID
{{ Auth::user()->nid ?? 'N/A' }}
Date of Birth
{{ Auth::user()->dob ? Auth::user()->dob->format('d M, Y') : 'N/A' }}
Address
{{ Auth::user()->address ?? 'N/A' }}
Role
{{ Auth::user()->getRoleNames()->implode(', ') }}
Status
@if(Auth::user()->status == 'active') Active @else Inactive @endif
Update Profile Photo
@csrf
@if(Auth::user()->photo) Current Photo @else Default Photo @endif
@error('photo')
{{ $message }}
@enderror
Change Your Password
@csrf
@error('current_password')
{{ $message }}
@enderror
@error('new_password')
{{ $message }}
@enderror
Your Trusted Devices

These are the devices where you can login without OTP verification.

@if(Auth::user()->devices->count() > 0)
@foreach(Auth::user()->devices as $device)
{{ $device->device_name ?? 'Unknown Device' }}

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

Platform: {{ $device->platform ?? 'Unknown' }}

IP: {{ $device->ip_address ?? 'Unknown' }}

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

@if($device->is_trusted) Trusted @else Not Trusted @endif
@csrf @method('DELETE')
@endforeach
@else
No trusted devices found. When you login from a new device, it will appear here after OTP verification.
@endif
@endsection @section('customjs') @endsection