<div class="row">
	<div class="col-md-12 col-lg-6 px-4">

		<div class="mb-3">
			<label for="nombre" class="form-label">
				<?= lang('PapelImpresion.nombre') ?>*
			</label>
			<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control"
				value="<?= old('nombre', $papelImpresion->nombre) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="referencia" class="form-label">
				<?= lang('PapelImpresion.referencia') ?>
			</label>
			<input type="text" id="referencia" name="referencia" maxLength="13" class="form-control"
				value="<?= old('referencia', $papelImpresion->referencia) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="mano" class="form-label">
				<?= lang('PapelImpresion.mano') ?>*
			</label>
			<input type="number" id="mano" name="mano" required maxLength="8" step="0.01" class="form-control"
				value="<?= old('mano', $papelImpresion->mano) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="precioTonelada" class="form-label">
				<?= lang('PapelImpresion.precioTonelada') ?>*
			</label>
			<input type="number" id="precioTonelada" name="precio_tonelada" required maxLength="31" step="0.01"
				class="form-control" value="<?= old('precio_tonelada', $papelImpresion->precio_tonelada) ?>">
		</div><!--//.mb-3 -->

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


	<div class="col-md-12 col-lg-6 px-4">
		<div class="mb-3">
			<label for="papelGenericoId" class="form-label">
				<?= lang('PapelImpresion.papelGenericoId') ?>*
			</label>
			<select id="papelGenericoId" name="papel_generico_id" required class="form-control select2"
				style="width: 100%;">

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

		<div class="mb-3">
			<label for="gramaje" class="form-label">
				<?= lang('PapelImpresion.gramaje') ?>*
			</label>
			<input type="number" id="gramaje" name="gramaje" required maxLength="31" step="0.01" class="form-control"
				value="<?= old('gramaje', $papelImpresion->gramaje) ?>">
		</div><!--//.mb-3 -->

		<div class="mb-3">
			<label for="espesor" class="form-label">
				<?= lang('PapelImpresion.espesor') ?>*
			</label>
			<input type="number" id="espesor" name="espesor" required placeholder="0.00" maxLength="8" step="0.01"
				class="form-control" value="<?= old('espesor', $papelImpresion->espesor) ?>">
		</div><!--//.mb-3 -->


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

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

<div class="row">
	<div class="col-md-12 col-lg-6 px-4">
		<div class="mb-3">
			<div class="form-check">

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

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

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

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

				<label for="use_for_tapa_dura" class="form-check-label">
					<input <?= $papelImpresion->cubierta? ' ' : 'disabled ' ?> type="checkbox" id="useForTapaDura" name="use_for_tapa_dura" value="1" class="form-check-input"
						<?= $papelImpresion->use_for_tapa_dura == true ? 'checked' : ''; ?>>
					<?= lang('PapelImpresion.use_for_tapa_dura') ?>
				</label>
			</div><!--//.form-check -->
		</div><!--//.mb-3 -->

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

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

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

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

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

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

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

	<div class="col-md-12 col-lg-6 px-4">
		<div class="mb-3">
			<div class="form-check">

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

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

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

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

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

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

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

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