<?= $this->extend('layout/base_dashboard') ?>

<!-- CONTENIDO -->
<?= $this->section("content") ?>

	<div class="container">
		<div class="row mt-1">
			<div class="mb-2">
				<!--<button class="btn btn-sm btn-info" title="Registro Clientes" id="btn_clientes_add">
					<i class="bi bi-person-add icon-20"></i>
				</button> -->
				<a href="<?= base_url().'clientes/clientes_add/' ?>" type="button" class="btn" title="Nuevo"><i class="bi bi-person-add icon-20"></i></a>
			</div>
			
			<?php 
			if(isset($clientes) && !empty($clientes)) {
				foreach ($clientes as $item) { ?>
					<div class="col-lg-4 col-12 mb-1">
						<div class="card bg-light p-2">
						<a href="<?= base_url() ?>clientes/clientes_show/<?= $item->id ?>">
							<div class="d-flex justify-content-between align-items-center">
									<div class="d-flex">
										<div class="" style="line-height: 0.97rem;"><?= $item->contacto ?><br><small class="tel text-muted"><?= $item->telefono1 ?></small>
										</div>
									</div>
								
								
								<div class="ms-auto"><i class="bi bi-people icon-20"></i></div>
							</div>
						</a>
						</div>
					</div>
								
			<?php	} } else { echo "<h4>0 registros encontrados</h4>"; } ?>
		</div>
	</div>

<?= $this->endSection() ?>


<!-- SCRIPTS -->
<?= $this->section("scripts") ?>
<?= $this->endSection() ?>


