@extends('layouts.app') @section('content')

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

Update user details, role, and department assignments.
Back to Users
@csrf @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Leave blank to keep current password.
@php $extNumbers = $extensions->pluck('number')->all(); @endphp
Links user to a PBX extension for data scoping.
Determines what sections this user can access.
@php $currentRole = $roles->firstWhere('id', old('role_id', $user->role_id)); $showDepts = $currentRole && $currentRole->data_scope === 'department'; @endphp
Hold Ctrl/Cmd to select multiple.
@if($user->role)
@foreach($user->role->permissions ?? [] as $perm) {{ $perm }} @endforeach
@endif
Cancel
@endsection