@extends('layouts.app') {{-- Use your main layout file --}} @section('title', 'Edit User: ' . $user->name) @section('content') {{-- Back Navigation & Title --}}
{{-- Link back to the users index page --}} ← Back to Users List

Edit User: {{ $user->name }}

{{-- Form Container --}}
{{-- Form points to users.update route, using PUT method --}}
@csrf @method('PUT') {{-- Important: Use PUT for updates --}} {{-- Name Field --}}
@error('name')

{{ $message }}

@enderror
{{-- Email Field --}}
@error('email')

{{ $message }}

@enderror
{{-- Password Section (Optional Update) --}}

Leave password fields blank to keep the current password.

{{-- New Password Field --}}
@error('password')

{{ $message }}

@enderror
{{-- Confirm New Password Field --}}
{{-- Error for confirmation usually shows under the main password field --}}
{{-- Add Role/Permission selection here if needed --}} {{-- Example: --}} {{--
@error('role')

{{ $message }}

@enderror
--}} {{-- Submit Button --}}
{{-- End Form Container --}} @endsection