@extends('adm.index')
@section('usuarios','active')
@section('usuarios_true','true')
@section('usuarios_show','show')
@section('form')

<form method="POST" action="<?= route('editUsuario') ?>">
    @csrf
    <div class="mb-3">
        <input type="hidden" value="<?= $usuario->id ?>" name="id">
        <label for="nombre" class="form-label">Nombre</label>
        <input type="text" id="nombre" class="form-control" value="<?= $usuario->name ?>" name="nombre" required>
    </div>
    <div class="mb-3">
        <label for="email" class="form-label">Email</label>
        <input type="text" id="email" class="form-control" value="<?= $usuario->email ?>" name="email" required>
    </div>
    <div class="mb-3">
        <label for="usuario" class="form-label">Usuario</label>
        <input type="text" id="usuario" class="form-control" value="<?= $usuario->username ?>" name="username" required>
    </div>
    <div class="mb-3">
        <label for="password" class="form-label">Contrase&ntilde;a</label>
        <input type="password" id="password" class="form-control" name="password">
    </div>
    <button type="submit" class="btn btn-primary">Actualizar usuario</button>
</form>

@endsection
