<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
<?= $this->include("themes/_commonPartialsBs/sweetalert") ?>
<?= $this->extend('themes/vuexy/main/defaultlayout') ?>

<?= $this->section("content") ?>
<div class="row">
	<div class="col-12">
		<div class="card card-info">
			<div class="card-header">
				<h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3>
			</div><!--//.card-header -->

			<form id="catalogoLibroForm" class="card-body" method="post" action="<?= $formAction ?>">
				<?= csrf_field() ?>
				<!-- card-body -->
				<div class="card-body">
					<?= view("themes/_commonPartialsBs/_alertBoxes") ?>
					<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
					<?= view("themes/vuexy/form/catalogo/_datosGeneralesFormItems") ?>
					<?= view("themes/vuexy/form/catalogo/_otrosDatosFormItems") ?>
					<?= view("themes/vuexy/form/catalogo/_configuracionLibroFormItems") ?>
					<?= view("themes/vuexy/form/catalogo/_trackingFormItems") ?>
				</div>
				<!-- /.card-body -->
				<!-- card-footer -->
				<div class="pt-4">
					<?php if (auth()->user()->can('catalogo.edit')): ?>
						<input type="submit" class="btn btn-primary float-start me-sm-3 me-1" name="save"
							value="<?= lang("Basic.global.Save") ?>" />
					<?php endif; ?>
					<?= anchor(route_to("catalogoLibrosList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start"]) ?>
				</div>
				<!-- /.card-footer -->
			</form>
		</div><!-- //.card -->
	</div><!--//.col -->
</div><!--//.row -->
<?= $this->endSection() ?>


<?= $this->section('css') ?>
	<link rel="stylesheet" href="<?= site_url('themes/vuexy/css/safekat.css') ?>">
<?= $this->endSection() ?>


<?= $this->section("additionalExternalJs") ?>
	<script type="module" src="<?= site_url('assets/js/safekat/pages/catalogo/catalogo.js?' . 'token' . '=' . (csrf_token() ?? "token")) ?>"></script>
<?= $this->endSection() ?>