@extends('admin.layout.layout') @section('content')

{{ $title }}

{{-- Our Bootstrap error code in case of wrong current password or the new password and confirm password are not matching: --}} {{-- 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 --}} @if (Session::has('error_message')) @endif {{-- Displaying Laravel Validation Errors: https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors --}} @if ($errors->any()) @endif {{-- 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: --}} @if (Session::has('success_message')) @endif
@csrf
{{-- We create this
in a separate file in order for the appendCategoryLevel() method inside the CategoryController to be able to return the whole file as a response to the AJAX call in admin/js/custom.js to show the proper/relevant categories {{-- Show the admin image if exists --}} View Image {{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}} {{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}} {{-- Show the category image, if any (if exits) --}} @if (!empty($category['category_image'])) View Category Image |  Delete Category Image {{-- Delete the category image from BOTH SERVER (FILESYSTEM) & DATABASE --}} {{-- Check admin/js/custom.js and web.php (routes) --}} @endif
{{-- --}}
@include('admin.layout.footer')
@endsection