<div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Crear Cuenta</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('cuentas') }}" onsubmit="createform(this); return false">
				<input type="hidden" name="action" value="add">
				<div class="row">
					<div class="col-2">
						<input type="text" class="form-control"  id="input-cont" name="codigo" placeholder="Codigo cuenta" required="">
					</div>
					<div class="col-4">
						<input type="text" class="form-control"  id="input-cont" name="descripcion" placeholder="Descripcion cuenta" required="">
					</div>
					<div class="col-3">
						<select name="contra_cuenta"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker" data-live-search="true" >
							<option value="">Seleccionar..</option>
							@forelse ($cuentas as $c)
								<option value="{{ $c->codigo }}">{{ $c->descripcion }}</option>
							@empty

							@endforelse
						</select>					
					</div>
					<div class="col-3">
						<select name="contra_cuenta2"  id="dynamic_selects"   class="form-control dynamic_selects selectpicker" data-live-search="true" >
							<option value="">Seleccionar..</option>
							@forelse ($cuentas as $c)
								<option value="{{ $c->codigo }}">{{ $c->descripcion }}</option>
							@empty

							@endforelse
						</select>	
					</div>
				</div>

				<hr>
				<div class="row justify-content-center">
					<div class="col-4 text-right">
						<input type="checkbox" name="auxiliar"  value="1"> <span class="text-danger">Auxiliar</span>
					</div>
					<div class="col-4">
						<input type="checkbox" name="articulos" value="1" > <span class="text-danger">Articulos</span>
					</div>
				</div>
				<div class="row">
					<div class="col-12 text-center">
						<br>
						<button class="btn btn-primary"><i class="icon-floppy-disk "></i> Guardar</button>
					</div>
				</div>
			</form>
      </div>
    </div>
  </div>
</div>