<div class="row border rounded pt-2 pb-2 mb-1 cliente" id="cliente<?php echo $c['id']; ?>">
	<div class="col-6 col-md-8">
		<?php if (!empty($c['position'])) { ?>
			<strong><?php echo $c['position'];?>. </strong>
		<?php } ?>
		<?php if (!empty($c['ps_id'])) { ?>
			<span class="ps-id badge badge-pill badge-primary"><?php echo $c['ps_id'];?></span>
		<?php } ?>
		<a target="_blank" href="/clientes/view/<?php echo $c['id']; ?>">
			<span class="id badge badge-pill badge-info"><?php echo $c['id'];?></span>
			<span class="nombre"><?php echo $c['nombre']?></span>
		</a>
	</div>
	<?php
		if (!empty($c['fono'])) { 
			?>
			<div class="col-3 telefono text-right"><?php echo $c['fono']; ?></div>
			<?php
		}
		else if (!empty($c['suma'])) {
			?>
			<div class="col-4 col-md-3 suma text-right">
				<span class="badge badge-pill badge-success"><?php echo clp($c['suma']); ?></span>
				<span class="badge badge-pill badge-info"><?php echo round($c['suma']/$total*100, 2); ?>%</span>
			</div>
			<?php
		}
		else {
			?>
			<div class="col-3 text-right"></div>
			<?php
		}
	?>
	<div class="col-2 col-md-1 text-right">
		<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#modalCliente" data-id="<?php echo $c['id']; ?>">
			<i class="fas fa-pencil-alt"></i>
		</button>
	</div>
</div>