@extends('layouts.app') @section('title', 'My Profile — ' . config('app.name')) @section('content')
@include('partials.nav')

My Profile

LDAP account details and self-service actions

@include('partials.flash')

Account Information

Username
{{ $profile['username'] }}
Domain
{{ $profile['domain'] }}
Role
@if ($profile['is_admin']) Administrator @else User @endif
Status
@if ($profile['enabled']) Enabled @else Disabled @endif
Last Logon
{{ $profile['last_logon'] ? $profile['last_logon'] . ' UTC' : '—' }}
@if (count($profile['groups']) > 0)
Groups
@foreach ($profile['groups'] as $group) {{ $group }} @endforeach
@endif
@csrf @method('PUT')

Edit Profile

Display name dan email LDAP disimpan ke Active Directory. Other email dan phone disimpan di aplikasi.

@error('display_name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('other_email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@php $ldapEmail = $profile['email'] !== '' ? $profile['email'] : null; $otherEmail = ($meta['other_email'] ?? '') !== '' ? $meta['other_email'] : null; $testRecipients = array_values(array_unique(array_filter([$ldapEmail, $otherEmail]))); $resetEmail = $ldapEmail ?? $otherEmail ?? ''; @endphp

Test Email

Kirim email uji dari SMTP ke alamat yang terdaftar. @if (count($testRecipients) === 0) Isi email LDAP atau other email, simpan profil, lalu uji kirim. @else Akan dikirim ke: @foreach ($testRecipients as $recipient) {{ $recipient }}@if (! $loop->last), @endif @endforeach @endif

@csrf

Password

Send a password reset link to your registered email address. @if ($resetEmail === '') Add an email above first. @endif

@csrf
@include('partials.activity-log', ['activityLogs' => $activityLogs, 'activityError' => $activityError ?? null])
@endsection