From ce541483c74d03ddac6617cdf10ec78c2b2d56c3 Mon Sep 17 00:00:00 2001 From: Priatmoko Date: Thu, 4 Apr 2019 10:53:22 +0700 Subject: [PATCH] Change navigation type in user profile setting --- .../Admin/Profile/form-password.blade.php | 80 +++++++++++++++++++ .../Admin/Profile/menu-setting.blade.php | 20 ++++- .../views/Admin/Profile/setting.blade.php | 9 ++- 3 files changed, 106 insertions(+), 3 deletions(-) create mode 100644 resources/views/Admin/Profile/form-password.blade.php diff --git a/resources/views/Admin/Profile/form-password.blade.php b/resources/views/Admin/Profile/form-password.blade.php new file mode 100644 index 0000000..b5d3e0f --- /dev/null +++ b/resources/views/Admin/Profile/form-password.blade.php @@ -0,0 +1,80 @@ +
+ @component('layouts.elements.others.card', + ['title'=>'User Profile Change Password']) + @csrf +

Update your current password to the safer new password.

+
+ +
+ +
+ @if ($errors->has('password')) + {{ $errors->first('password') }} + @else + {{__('Please fill in your New Password')}} + @endif +
+
+
+
+ +
+ +
+ @if ($errors->has('password_confirmation')) + {{ $errors->first('password_confirmation') }} + @else + {{__('Please fill in your Password Confirmation')}} + @endif +
+
+
+
+ +
+ +
+ @if ($errors->has('password_current')) + {{ $errors->first('password_current') }} + @else + {{__('Please fill in your Current Password')}} + @endif +
+
+
+ @slot('footer') +
+ +
+ @endslot + @endcomponent +
\ No newline at end of file diff --git a/resources/views/Admin/Profile/menu-setting.blade.php b/resources/views/Admin/Profile/menu-setting.blade.php index e24130e..c295819 100644 --- a/resources/views/Admin/Profile/menu-setting.blade.php +++ b/resources/views/Admin/Profile/menu-setting.blade.php @@ -13,8 +13,24 @@ class="rounded-circle author-box-picture"
diff --git a/resources/views/Admin/Profile/setting.blade.php b/resources/views/Admin/Profile/setting.blade.php index c1bfa40..6bc0b1a 100644 --- a/resources/views/Admin/Profile/setting.blade.php +++ b/resources/views/Admin/Profile/setting.blade.php @@ -11,7 +11,14 @@ @include('Admin.Profile.menu-setting')
- @include('Admin.Profile.form-setting') +
+
+ @include('Admin.Profile.form-setting') +
+
+ @include('Admin.Profile.form-password') +
+
@endcomponent