@extends('layouts.admin') @section('title', 'User Details') @section('page-title', 'User Details') @section('page-description', 'Informasi lengkap user') @section('content')

Personal Information

Full Name {{ $user->name }}
Email Address {{ $user->email }}
Phone Number {{ $user->phone ?? '-' }}
Address {{ $user->address ?? '-' }}

Account Information

Role {{ ucfirst($user->role) }}
Status {{ $user->is_active ? 'Active' : 'Inactive' }}
Member Since {{ $user->created_at->format('d F Y, H:i') }}
Last Login {{ $user->last_login_at ? $user->last_login_at->diffForHumans() : 'Never' }}
Last Updated {{ $user->updated_at->diffForHumans() }}

Devices Owned

{{ $user->devices->count() }} devices
@if($user->devices->count() > 0)
@foreach($user->devices as $device) @endforeach
Device Name Device ID Type Status Last Heartbeat Actions
{{ $device->name }} {{ $device->device_id }} {{ ucfirst($device->type) }} {{ ucfirst($device->status) }} {{ $device->last_heartbeat ? $device->last_heartbeat->diffForHumans() : 'Never' }} View
@else

No devices owned by this user

@endif
@endsection