{{-- resources/views/admin/users/partials/user-details.blade.php --}}
{{ $user->name }}

{{ $user->name }}

{{ $user->email }}

{{ ucfirst($user->role) }} {{ ucfirst($user->status) }} @if(!$user->is_active) Inactive @endif

Basic Information

Full Name
{{ $user->name }}
Email
{{ $user->email }}
Role
{{ ucfirst($user->role) }}
@if($user->school)
School
{{ $user->school->name }}
@endif @if($user->nip_nis)
{{ $user->role == 'siswa' ? 'NIS' : 'NIP' }}
{{ $user->nip_nis }}
@endif @if($user->phone)
Phone
{{ $user->phone }}
@endif @if($user->gender)
Gender
{{ $user->gender == 'L' ? 'Laki-laki' : 'Perempuan' }}
@endif @if($user->birth_date)
Birth Date
{{ $user->birth_date->format('d M Y') }} ({{ $user->birth_date->age }} years old)
@endif
@if($user->address)
Address
{{ $user->address }}
@endif

Registration Information

Registration Date
{{ $user->created_at->format('d M Y, H:i') }}
Registration Time Ago
{{ $user->created_at->diffForHumans() }}
Current Status
{{ ucfirst($user->status) }}
@if($user->last_login)
Last Login
{{ $user->last_login->diffForHumans() }}
@endif
@if($user->approved_by || $user->rejection_reason)

Approval Information

@if($user->approved_by)
Reviewed By
{{ $user->approvedBy->name ?? 'Unknown' }}
@endif @if($user->approved_at)
Review Date
{{ $user->approved_at->format('d M Y, H:i') }}
@endif @if($user->rejection_reason)
Rejection Reason
{{ $user->rejection_reason }}
@endif
@endif @if($user->isPending())
@csrf
@endif