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

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

Back
@csrf @method('PUT') {{-- Basic Information --}}
Basic Information
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror

{{-- Password --}}
Change Password

Leave blank to keep current password

Minimum 8 characters @error('password')
{{ $message }}
@enderror

{{-- Roles --}}
Roles & Permissions *
@error('role_ids')
{{ $message }}
@enderror
@php $userRoleIds = old('role_ids', $user->roles->pluck('id')->toArray()); @endphp @foreach($roles as $role)
id, $userRoleIds) ? 'checked' : '' }}>
@endforeach

{{-- Status --}}
Account Status
is_active) ? 'checked' : '' }}>
{{-- Submit Buttons --}}
Cancel
{{-- Info Sidebar --}}
User Information

{{ $user->created_at->format('d M Y, H:i') }}

{{ $user->updated_at->format('d M Y, H:i') }}


Warning: Changing roles will affect user permissions immediately.
@endsection