@php $user = Auth::user(); $userType = $user->user_type; // Tentukan layout berdasarkan role if ($userType === 'admin') { $layout = 'layouts.admin'; } elseif ($userType === 'supervisor') { $layout = 'layouts.supervisor'; } elseif ($userType === 'teknisi') { $layout = 'layouts.teknisi'; } else { $layout = 'layouts.main'; } @endphp @extends($layout) @section('title', 'Edit Profile - POLJAM TECH') @section('content') @if (session('status') === 'profile-updated') @include('profile.partials.notification', [ 'type' => 'success', 'message' => 'Profile berhasil diperbarui!' ]) @endif @if (session('status') === 'password-updated') @include('profile.partials.notification', [ 'type' => 'success', 'message' => 'Password berhasil diperbarui!' ]) @endif @if ($errors->any() && !$errors->has('current_password') && !$errors->has('password') && !$errors->has('password_confirmation')) @include('profile.partials.notification', [ 'type' => 'error', 'message' => $errors->first(), 'duration' => 5000 ]) @endif
Kelola informasi profil dan foto Anda
Hapus akun Anda secara permanen