<div class="card-body">
    <div class="form-floating mb-2 mt-2 col-md-4">
        <input type="text" class="form-control" name="nombrerol" value="{{ isset($rol->nombrerol) ? $rol->nombrerol : '' }}"
            id="nombre" autocomplete="off" required>
        <label for="floatingInput">Nombre Rol</label>
    </div> 
    <div class="form-floating mb-2 mt-2 col-md-4">
        <select name="estado" class="form-control required" autocomplete="off" required>
            @if ($rol->estado == 'ACTIVO')
                <option value="ACTIVO" selected>ACTIVO</option>
                <option value="INACTIVO">INACTIVO</option>
            @else
                <option value="ACTIVO">ACTIVO</option>
                <option value="INACTIVO" selected>INACTIVO</option>
            @endif
        </select>
        <label for="floatingInput">Estado</label>
    </div>
</div>
{{-- {!! Form::hidden('cambiopass', 0) !!} --}}
<div class="card-footer" align="right">
    <a href="{{url('/rol')}}" class="btn btn-secondary" style="text-decoration: none"><i class="bi bi-x-circle"></i> Cancelar</a>
    <button type="submit" class="btn btn-success"><i class="bi bi-floppy2-fill"></i> Guardar</button>
</div>
