@extends('layouts.app') @section('title', 'Edit User') @section('content')
@include('partials._flash')
Edit User
@csrf @method('PUT')
@foreach($roles as $role)
id, old('roles', $userRoleIds ?? [])) ? 'checked' : '' }}>
{{-- Permissions Container (Hidden by default, shown via JS if role is checked) --}}
@endforeach
@endsection