@extends('admin.layouts.app') @section('title', 'User Details - ' . $user->name) @section('content')
Back to List

{{ $user->name }}

Detailed user profile and account information.

@csrf @method('PATCH')
@if(session('success'))
{{ session('success') }}
@endif
@if($user->avatar) @else
@endif

{{ $user->name }}

Registered User

Status

{{ $user->is_active ? 'Active' : 'Inactive' }}

Joined

{{ $user->created_at->format('M Y') }}

Account Activity

Total Logins {{ $user->login_count ?? 0 }}
Last Login {{ $user->last_login_at ? $user->last_login_at->diffForHumans() : 'Never' }}

Personal Information

{{ $user->name }}

{{ $user->email }}

{{ $user->mobile ?? 'Not provided' }}

@if($user->detail)

{{ $user->detail->dob ? \Carbon\Carbon::parse($user->detail->dob)->format('d M, Y') : 'N/A' }}

{{ $user->detail->gender ?? 'N/A' }}

{{ $user->detail->city ? $user->detail->city . ', ' : '' }} {{ $user->detail->state ? $user->detail->state->name . ', ' : '' }} {{ $user->detail->country ? $user->detail->country->name : 'N/A' }}

@endif
@if($user->detail)

Additional Details

{{ $user->detail->marital_status ?? 'N/A' }}

{{ $user->detail->occupation ?? 'N/A' }}

@if($user->detail->marital_status === 'married')

{{ $user->detail->spouse_name ?? 'N/A' }}

@endif
@endif
@endsection