@extends('layouts.app') @section('title', 'Edit User') @section('page-title', 'Edit User') @section('page-subtitle', '{{ $editUser->name }}') @section('topbar-actions') Back to Users @endsection @push('styles') @endpush @section('content')
@csrf @method('PUT')
{{-- ── LEFT: Form cards ── --}}
{{-- 1. Personal info --}}
Personal Information
ID #{{ $editUser->id }}
@error('name') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
{{-- 2. Password --}}
Change Password
Leave both fields blank to keep the current password.
@error('password') {{ $message }} @enderror
{{-- 3. Role & Status --}}
Role & Status
@error('role') {{ $message }} @enderror
Account Approved
Disable to restrict platform access
{{-- ── RIGHT: Sidebar ── --}}
{{-- Profile snapshot --}}
{{ strtoupper(substr($editUser->name, 0, 1)) }}
{{ $editUser->name }}
{{ $editUser->email }}
@php $rc = ['admin'=>'blue','manager'=>'yellow','influencer'=>'purple'][$editUser->role] ?? 'gray'; @endphp
Role {{ ucfirst($editUser->role) }}
Status {{ $editUser->is_approved ? 'Approved' : 'Pending' }}
Joined {{ $editUser->created_at->format('d M Y') }}
Last updated {{ $editUser->updated_at->diffForHumans() }}
{{-- Danger zone --}} @if($editUser->id !== auth()->id())
Danger Zone
Permanently delete this user and all associated data. This cannot be undone.
@endif
{{-- ── Delete modal ── --}} @endsection @push('scripts') @endpush