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

Edit User

Update user information and role

Back
@csrf @method('PUT')
{{-- Profile Card --}}
@if($user->avatar_url) {{ $user->name }} @else
{{ strtoupper(substr($user->name, 0, 2)) }}
@endif

{{ $user->name }}

{{ ucfirst($user->role) }}

@error('avatar')

{{ $message }}

@enderror
User ID #{{ $user->id }}
Joined {{ $user->created_at->format('M d, Y') }}
{{-- Form Fields --}}
{{-- Personal Information --}}

Personal Information

@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
{{-- Account Settings --}}

Account Settings

@error('role')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror

Leave blank to keep the current password

{{-- Submit --}}
Cancel
@endsection