@include('components.profile-card', [
'title' => 'Ubah Data Profil',
'icon' => 'fa-user-edit',
'color' => 'primary',
'route' => route('profile.update'),
'method' => 'PUT',
'fields' => [
['label' => 'Nama Lengkap', 'name' => 'name', 'value' => $user->name, 'required' => true],
[
'label' => 'Username',
'name' => 'username',
'value' => $user->username,
'required' => true,
],
['label' => 'Email', 'name' => 'email', 'value' => $user->email, 'required' => true],
['label' => 'Nomor HP', 'name' => 'phone', 'value' => $user->phone, 'required' => false],
],
'button' => ['color' => 'primary', 'text' => 'Simpan Perubahan', 'icon' => 'fa-save'],
])
@include('components.profile-card', [
'title' => 'Ubah Password',
'icon' => 'fa-key',
'color' => 'warning',
'route' => route('profile.updatePassword'),
'method' => 'PUT',
'fields' => [
['label' => 'Password Lama', 'name' => 'current_password', 'required' => true],
['label' => 'Password Baru', 'name' => 'password', 'required' => true],
[
'label' => 'Konfirmasi Password Baru',
'name' => 'password_confirmation',
'required' => true,
],
],
'button' => ['color' => 'warning', 'text' => 'Ganti Password', 'icon' => 'fa-lock'],
])