<div class="row">
	<div class="col-md-12 col-lg-6 px-4">
		<div class="mb-3">
			<label for="nombre" class="form-label">
				<?= lang('Proveedores.nombre') ?>*
			</label>
			<input type="text" id="nombre" name="nombre" tabindex="1" maxLength="255" class="form-control"
				value="<?= old('nombre', $proveedorEntity->nombre) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="razonSocial" class="form-label">
				<?= lang('Proveedores.razonSocial') ?>
			</label>
			<input type="text" id="razonSocial" name="razon_social" tabindex="3" maxLength="255" class="form-control"
				value="<?= old('razon_social', $proveedorEntity->razon_social) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="direccion" class="form-label">
				<?= lang('Proveedores.direccion') ?>
			</label>
			<input type="text" id="direccion" name="direccion" tabindex="5" maxLength="255" class="form-control"
				value="<?= old('direccion', $proveedorEntity->direccion) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="ciudad" class="form-label">
				<?= lang('Proveedores.ciudad') ?>
			</label>
			<input type="text" id="ciudad" name="ciudad" tabindex="7" maxLength="255" class="form-control"
				value="<?= old('ciudad', $proveedorEntity->ciudad) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="paisId" class="form-label">
				<?= lang('Proveedores.paisId') ?>
			</label>
			<select id="paisId" name="pais_id" tabindex="9" class="form-control select2bs" style="width: 100%;">
				<option value=""><?= lang('Basic.global.pleaseSelectA', [lang('Proveedores.paisId')]) ?></option>

				<?php foreach ($paisList as $item): ?>
					<option value="<?= $item->id ?>" <?= $item->id == $proveedorEntity->pais_id ? ' selected' : '' ?>>
						<?= $item->nombre ?>
					</option>
				<?php endforeach; ?>
			</select>
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="email" class="form-label">
				<?= lang('Proveedores.email') ?>
			</label>
			<input type="email" id="email" name="email" tabindex="11" maxLength="255" class="form-control"
				value="<?= old('email', $proveedorEntity->email) ?>">
		</div><!--//.mb-3 -->

	</div><!--//.col -->
	<div class="col-md-12 col-lg-6 px-4">
		<div class="mb-3">
			<label for="tipoId" class="form-label">
				<?= lang('Proveedores.tipoId') ?>*
			</label>
			<select id="tipoId" name="tipo_id" tabindex="2" class="form-control select2bs2" style="width: 100%;">

				<?php if (isset($proveedorTipoList) && is_array($proveedorTipoList) && !empty($proveedorTipoList)):
					foreach ($proveedorTipoList as $k => $v): ?>
						<option value="<?= $k ?>" <?= $k == $proveedorEntity->tipo_id ? ' selected' : '' ?>>
							<?= $v ?>
						</option>
					<?php endforeach;
				endif; ?>
			</select>
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="cif" class="form-label">
				<?= lang('Proveedores.cif') ?>
			</label>
			<input type="text" id="cif" name="cif" tabindex="4" maxLength="15" class="form-control"
				value="<?= old('cif', $proveedorEntity->cif) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="cp" class="form-label">
				<?= lang('Proveedores.cp') ?>
			</label>
			<input type="text" id="cp" name="cp" tabindex="6" maxLength="10" class="form-control"
				value="<?= old('cp', $proveedorEntity->cp) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="provinciaId" class="form-label">
				<?= lang('Proveedores.provinciaId') ?>
			</label>
			<select id="provinciaId" name="provincia_id" tabindex="8" class="form-control select2bs2"
				style="width: 100%;">

				<?php if (isset($provinciaList) && is_array($provinciaList) && !empty($provinciaList)):
					foreach ($provinciaList as $k => $v): ?>
						<option value="<?= $k ?>" <?= $k == $proveedorEntity->provincia_id ? ' selected' : '' ?>>
							<?= $v ?>
						</option>
					<?php endforeach;
				endif; ?>
			</select>
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="personaContacto" class="form-label">
				<?= lang('Proveedores.personaContacto') ?>
			</label>
			<input type="text" id="personaContacto" name="persona_contacto" tabindex="10" maxLength="255"
				class="form-control" value="<?= old('persona_contacto', $proveedorEntity->persona_contacto) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="telefono" class="form-label">
				<?= lang('Proveedores.telefono') ?>
			</label>
			<input type="text" id="telefono" name="telefono" tabindex="12" maxLength="60" class="form-control"
				value="<?= old('telefono', $proveedorEntity->telefono) ?>">
		</div><!--//.mb-3 -->

	</div><!--//.col -->

</div><!-- //.row -->

<div class="row" id="row_transporte" style="display:none;">

	<div class="mb-3">
		<div class="form-check">

			<label for="cajas" class="form-check-label">
				<input type="checkbox" id="cajas" name="cajas" value="1" class="form-check-input"
					<?= $proveedorEntity->cajas == true ? 'checked' : ''; ?>>
				<?= lang('Proveedores.cajas') ?>
			</label>
		</div><!--//.form-check -->
	</div><!--//.mb-3 -->

	<div class="mb-3">
		<div class="form-check">

			<label for="palets" class="form-check-label">
				<input type="checkbox" id="palets" name="palets" value="1" class="form-check-input"
					<?= $proveedorEntity->palets == true ? 'checked' : ''; ?>>
				<?= lang('Proveedores.palets') ?>
			</label>
		</div><!--//.form-check -->
	</div><!--//.mb-3 -->

</div><!-- //.row -->