@extends('admin.layouts.app') @section('title', 'Edit User') @section('page-title', 'Edit User') @section('content')

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

← Back
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
@error('name') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
{{-- Hidden input to preserve admin status when checkbox is disabled --}} @if($user->id === auth()->id() || ($user->is_admin && auth()->id() !== 1)) @endif @if($user->id === auth()->id()) You cannot change your own admin status @elseif($user->is_admin && auth()->id() !== 1) Only super admin can change admin status @endif

Change Password

Leave blank to keep current password

@error('password') {{ $message }} @enderror
Cancel
@if($user->profile_picture) Profile @else
{{ strtoupper(substr($user->name, 0, 1)) }}
@endif
@if($user->profile_picture) @endif

Reset Password

Reset this user's password to default: password123

@csrf @method('PATCH')

SYSTEM WARNING

CRITICAL ALERT: You are about to DELETE target identity image.

This action cannot be undone. Confirm deletion?

IMAGE CROP INTERFACE

@endsection