<div id="modalRol" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <form id="form">
                @csrf
                <input type="hidden" name="id" id="id" value="0">
                <div class="modal-header">
                    <h4 class="modal-title"></h4>
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                </div>
                <div class="modal-body pl-4 pr-4">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label>Rol</label>
                                <input type="text" name="rol" id="rol" class="form-control">
                            </div>
                        </div>
                    </div>   
                    <div class="row mt-2">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label>Seleccione los Permisos:</label>
                                <div class="row">
                                    @foreach($permisos as $permiso)
                                        <div class="col-md-3 checkbox py-1">
                                            <input type="checkbox" name="permissions[]" value="{{ $permiso->name }}" id="permiso_{{ $permiso->id }}">
                                            <label for="permiso_{{ $permiso->id }}">
                                                {{ ucwords($permiso->name) }}
                                            </label>
                                        </div>
                                    @endforeach
                                </div>
                                
                            </div>
                        </div>
                    </div>
                    <div class="alert alert-danger print-error-msg" style="display:none">
                        <ul></ul>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-rounded btn-info waves-effect">Grabar</button>
                    <button type="button" class="btn btn-rounded btn-danger waves-effect" data-dismiss="modal">Cerrar</button>
                </div>
            </form>
        </div>
    </div>
</div>