{{-- resources/views/profile/edit.blade.php --}} @push('styles') @endpush
{{-- ── PAGE HEADER ── --}}

Profil Saya

Kelola detail akun dan keamanan Anda

{{-- Alert Success / Status --}} @if (session('status') === 'profile-updated')
Informasi profil berhasil diperbarui!
@elseif (session('status') === 'password-updated')
Password berhasil diperbarui!
@endif
{{-- ── COLUMN 1: USER DETAILS & LOGOUT ── --}}
Profile

{{ $user->name }}

{{ $user->email }}

Hak Akses Administrator
Terdaftar {{ $user->created_at ? \Carbon\Carbon::parse($user->created_at)->translatedFormat('d M Y') : '-' }}
{{-- BUTTON LOGOUT YANG BENER-BENER LOGOUT KE HALAMAN LOGIN --}}
@csrf
{{-- ── COLUMN 2: FORMS ── --}}
{{-- FORM 1: UPDATE PROFILE INFORMATION --}}

Informasi Profil

Perbarui nama pengguna dan alamat email akun Anda.

@csrf @method('patch')
@if($errors->has('name')) {{ $errors->first('name') }} @endif
@if($errors->has('email')) {{ $errors->first('email') }} @endif
{{-- FORM 2: UPDATE PASSWORD --}}

Perbarui Password

Pastikan akun Anda menggunakan password yang aman dan rahasia.

@csrf @method('put')
@if($errors->updatePassword->has('current_password')) {{ $errors->updatePassword->first('current_password') }} @endif
@if($errors->updatePassword->has('password')) {{ $errors->updatePassword->first('password') }} @endif
@if($errors->updatePassword->has('password_confirmation')) {{ $errors->updatePassword->first('password_confirmation') }} @endif