{{-- This page is accessed from My Account tab in the dropdown menu in the header (in front/layout/header.blade.php). Check userAccount() method in Front/UserController.php --}} @extends('front.layout.layout') @section('content')

My Account

{{-- Displaying The Validation Errors: https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors AND https://laravel.com/docs/9.x/blade#validation-errors --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} {{-- Our Bootstrap success message in case of updating admin password is successful: --}} {{-- Displaying Success Message --}} @if (Session::has('success_message')) @endif {{-- Displaying Error Messages --}} @if (Session::has('error_message')) @endif {{-- Displaying Error Messages --}} @if ($errors->any()) @endif
{{-- Registration Success Message using jQuery. Check front/js/custom.js --}} {{--

--}}

{{-- Show Update User Password Errors --}} {{--

--}} {{-- if the Validation passes / is okay but the login credentials provided by the user are incorrect, this'll be used by jQuery to show a generic 'Wrong Credentials!' message. Or to show a message when the user's account is inactive/disabled/deactivated --}}

{{-- if the Validation passes / is okay but the login credentials provided by the user are incorrect, this'll be used by jQuery to show a generic 'Wrong Credentials!' message. Or to show a message when the user's account is inactive/disabled/deactivated --}}
{{-- We need to deactivate the 'action' HTML attribute (using 'javascript:;' ) as we'r going to submit using an AJAX call. Check front/js/custom.js --}} @csrf {{-- Preventing CSRF Requests: https://laravel.com/docs/9.x/csrf#preventing-csrf-requests --}}
{{--

--}} {{-- this will be used by jQuery to show the Validation Error Messages (Laravel's Validation Error Messages) from the AJAX call response from the server (backend) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}}

{{-- this will be used by jQuery to show the Validation Error Messages (Laravel's Validation Error Messages) from the AJAX call response from the server (backend) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}}

{{--

--}} {{-- this will be used by jQuery to show the Validation Error Messages (Laravel's Validation Error Messages) from the AJAX call response from the server (backend) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}}

{{-- this will be used by jQuery to show the Validation Error Messages (Laravel's Validation Error Messages) from the AJAX call response from the server (backend) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}}

{{--

--}} {{-- this will be used by jQuery to show the Validation Error Messages (Laravel's Validation Error Messages) from the AJAX call response from the server (backend) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}}

{{-- this will be used by jQuery to show the Validation Error Messages (Laravel's Validation Error Messages) from the AJAX call response from the server (backend) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}} {{-- The pattern must be like: password-x (e.g. password-mobile, register-email, ... in order for the jQuery loop to work. And x must be identical to the 'name' HTML attributes (e.g. the with the name='mobile' HTML attribute must have a

with an id HTML attribute id="password-mobile" ) so that when the vaildation errors array is sent as a response from backend/server (check $validator->messages() inside the method inside the controller) to the AJAX request, they could conveniently/easily be handled by the jQuery $.each() loop. Check front/js/custom.js) --}}

@endsection