<div class="modal fade" id="createModal" 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">Agregar</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('ccostos') }}" onsubmit="createform(this); return false">
				<input type="hidden" name="action" value="add">
				<div class="row">
					<div class="col-6">
						<input type="text" class="form-control"  id="input-cont" name="codigo" placeholder="codigo costo" required="">
					</div>
					<div class="col-6">
						<input type="text" class="form-control"  id="input-cont" name="descripcion" placeholder="descripcion" required="">
					</div>
				</div>
				<hr>
				<div class="row">
					<div class="col-6">
						<select name="cuenta1"  class="form-control dynamic_selects selectpicker" data-live-search="true" >
						    <option value=""> Seleccionar...</option>
							@if($data['cuentas']->isNotEmpty())
								@foreach ($data['cuentas'] as $c)
								    @if(strlen($c->codigo) == 7)
									    <option value="{{ $c->codigo }}">{{ $c->codigo }} || {{ $c->descripcion }}</option>
									@endif
								@endforeach
							@endif
						</select>
					</div>
					<div class="col-6">
						<select name="cuenta2"  class="form-control dynamic_selects selectpicker" data-live-search="true" >
						    <option value=""> Seleccionar...</option>
							@if($data['cuentas']->isNotEmpty())
								@foreach ($data['cuentas'] as $c)
								    @if(strlen($c->codigo) == 7)
									    <option value="{{ $c->codigo }}"> {{ $c->codigo }} || {{ $c->descripcion }}</option>
									@endif
								@endforeach
							@endif
						</select>
					</div>
				</div>
				<hr>
				<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>