@extends('admin.layouts.app') @section('title', 'Detail User — '.$user->name) @section('page-title', 'Detail User') @section('content')
{{-- Kartu Profil --}}
{{ $user->name }}

{{ $user->name }}

{{ $user->username ?? '-' }} • {{ $user->email }}

@if ($user->trashed()) Dihapus @elseif ($user->is_active) Aktif @else Nonaktif @endif @if ($user->department) {{ $user->department->name }} @endif @if ($user->is_valid) Valid @else Tidak Valid @endif @if ($user->allow_multi_department) Multi Departemen: Diizinkan @else Multi Departemen: Diblokir @endif
{{-- Data Personal --}}

Data Personal

NIP
{{ $user->nip ?? '-' }}
Jabatan
{{ $user->jabatan ?? '-' }}
Departemen
{{ $user->department?->name ?? '-' }}
Unit
{{ $user->unit ?? '-' }}
Group
{{ $user->group_name ?? '-' }}
Line
{{ $user->line ?? '-' }}
No WA
{{ $user->phone ?? '-' }}
Alamat
{{ $user->alamat ?? '-' }}
Login Terakhir
{{ $user->last_login_at ? $user->last_login_at->format('d M Y H:i') : 'Belum pernah login' }}
Dibuat
{{ $user->created_at?->format('d M Y H:i') ?? '-' }}
{{-- Hak Akses Aplikasi --}}

Hak Akses Aplikasi

@forelse ($user->applicationRoles as $i => $uar) @empty @endforelse
No Aplikasi Role Status
{{ $i + 1 }} {{ $uar->application?->name ?? '-' }} {{ $uar->role?->name ?? '-' }} @if ($uar->is_active) Aktif @else Nonaktif @endif
Belum memiliki hak akses aplikasi.
@endsection