<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 tipo de documento</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body" style="overflow:auto;">
	        <div class="response-data">
				
			</div>
			<form action="{{ url('tipdoc') }}" onsubmit="createform(this); return false">
				<input type="hidden" name="action" value="add">
				<div class="row">
					<div class="col-4">
						<input type="text" class="form-control"  id="input-cont" name="codsun" placeholder="Codigo" required="">
					</div>
					<div class="col-4">
						<input type="text" class="form-control"  id="input-cont" name="descrip" placeholder="Descripcion" required="">
					</div>
					<div class="col-4">
						<input type="text" class="form-control"  id="input-cont" name="descor" placeholder="Abreviatura" required="">
					</div>
				</div><br/>
				<div class="row mb-2">
					<div class="col-2">
						<b>Relacional:</b> <input type="checkbox" name="relacional" value="1">
					</div>
					<div class="col-10">
						<div class="row flex-row-reverse">
							<div class="col-4 text-right">
								<select name="flag_tipe" id="" class="form-control">
									<option value="">Tipo..</option>
									<option value="flag01">Flag01</option>
									<option value="flag02">Flag02</option>
								</select>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<table class="table">
						<thead>
							<th></th>
							<th class="text-center" >Compras</th>
							<th class="text-center" >Ventas</th>

						</thead>
						<tbody>
							<tr>
								<td><strong>Descuento</strong></td>
								<td>
									<div class="row">
										<div class="col-6">
											<select name="debhab1"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker text-uppercase" data-live-search="true" >
												<option value="">Seleccionar..</option>
												<option value="debe">Debe</option>
												<option value="haber">Haber</option>
											</select>
										</div>
										<div class="col-6">
											<select name="cuenta1"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker " data-live-search="true" >
												<option value="">Seleccionar..</option>
												@forelse ($cuentas as $c)
													@if(strlen($c->codigo) == 7)
														<option value="{{ $c->codigo }}">{{ $c->codigo }} || {{ $c->descripcion }}</option>
													@endif
												@empty

												@endforelse
											</select>	
										</div>	
									</div>
								</td>
								<td>	
									<div class="row">
										<div class="col-6">
											<select name="debhab4"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker text-uppercase" data-live-search="true" >
												<option value="">Seleccionar..</option>
												<option value="debe">Debe</option>
												<option value="haber">Haber</option>
											</select>
										</div>
										<div class="col-6">
											<select name="cuenta4"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker" data-live-search="true" >
												<option value="">Seleccionar..</option>
												@forelse ($cuentas as $c)
													@if(strlen($c->codigo) == 7)
														<option value="{{ $c->codigo }}">{{ $c->codigo }} || {{ $c->descripcion }}</option>
													@endif
												@empty

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

							</tr>
							<tr>
								<td><strong>impuesto</strong></td>
								<td>									
									<div class="row">
										<div class="col-6">
											<select name="debhab2"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker text-uppercase" data-live-search="true" >
												<option value="">Seleccionar..</option>
												<option value="debe">Debe</option>
												<option value="haber">Haber</option>
											</select>
										</div>
										<div class="col-6">
											<select name="cuenta2"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker" data-live-search="true" >
												<option value="">Seleccionar..</option>
												@forelse ($cuentas as $c)
													@if(strlen($c->codigo) == 7)
														<option value="{{ $c->codigo }}">{{ $c->codigo }} || {{ $c->descripcion }}</option>
													@endif
												@empty

												@endforelse
											</select>	
										</div>	
									</div>
								</td>
								<td>									
									<div class="row">
										<div class="col-6">
											<select name="debhab5"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker text-uppercase" data-live-search="true" >
												<option value="">Seleccionar..</option>
												<option value="debe">Debe</option>
												<option value="haber">Haber</option>
											</select>
										</div>
										<div class="col-6">
											<select name="cuenta5"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker" data-live-search="true" >
												<option value="">Seleccionar..</option>
												@forelse ($cuentas as $c)
													@if(strlen($c->codigo) == 7)
														<option value="{{ $c->codigo }}"> {{ $c->codigo }} || {{ $c->descripcion }}</option>
													@endif
												@empty

												@endforelse
											</select>	
										</div>	
									</div>
								</td>
							</tr>
							<tr>
								<td><strong>Total</strong></td>
								<td>									
									<div class="row">
										<div class="col-6">
											<select name="debhab3"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker text-uppercase" data-live-search="true" >
												<option value="">Seleccionar..</option>
												<option value="debe">Debe</option>
												<option value="haber">Haber</option>
											</select>
										</div>
										<div class="col-6">
											<select name="cuenta3"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker" data-live-search="true" >
												<option value="">Seleccionar..</option>
												@forelse ($cuentas as $c)
													@if(strlen($c->codigo) == 7)
														<option value="{{ $c->codigo }}">{{ $c->codigo }} || {{ $c->descripcion }}</option>
													@endif
												@empty

												@endforelse
											</select>	
										</div>	
									</div>
								</td>
								<td>									
									<div class="row">
										<div class="col-6">
											<select name="debhab6"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker text-uppercase" data-live-search="true" >
												<option value="">Seleccionar..</option>
												<option value="debe">Debe</option>
												<option value="haber">Haber</option>
											</select>
										</div>
										<div class="col-6">
											<select name="cuenta6"   id="dynamic_selects"   class="form-control dynamic_selects selectpicker" data-live-search="true" >
												<option value="">Seleccionar..</option>
												@forelse ($cuentas as $c)
													@if(strlen($c->codigo) == 7)
														<option value="{{ $c->codigo }}">{{ $c->codigo }} || {{ $c->descripcion }}</option>
													@endif
												@empty

												@endforelse
											</select>	
										</div>	
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</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>