<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Module</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
	        <div class="response-data">
				
			</div>
			<form action="{{ url('user/config/modules') }}" method="POST" onsubmit="createform(this); return false">
				<input type="hidden" name="action" value="add">
				<div class="row">
					<div class="col-6">
						<label for=""><b>Module:</b></label>
						<input type="text" class="form-control" name="name" required="" placeholder="Ingresa tu modulo">
					</div>
					<div class="col-6">
						<label for=""><b>Url modulo:</b></label>
						<input type="text" class="form-control" name="url" required="" placeholder="Ingresa tu modulo">
					</div>

				</div>
				<hr>
				<div class="row pb-0 mb-0">
					<div class="col-12">
						<h3 class="text-center text-uppercase ">Roles</h3>
					</div>
				</div>
				<hr class="mt-0">
				<div class="row">
					@foreach ($roles as $r)
						<div class="col-12">
							<input type="checkbox" name="roles[]" value="{{$r->id}}" >
							<span class="text-uppercase" ><b>{{$r->name}}</b></span>
						</div>
					@endforeach
				</div>
				<hr>
				<div class="row">
					<div class="col-12 text-center">
						<button class="btn btn-primary"><i class="icon-floppy-disk "></i> Guardar</button>
					</div>
				</div>
			</form>
      </div>
    </div>
  </div>
</div>