<div class="row mt-3">
	<div class="col-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>
					Foram encontrados: <b class="text-navy"><?php echo $curl_->total_count; ?></b> registros
				</h5>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<?php foreach ($curl_->registros as $key => $reg) { ?>
		<div class="col-12 col-lg-6">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>
						<b>ID: </b> <?php echo (!empty($reg->id)) ? $reg->id : '<span class="text-danger">Não informado.</span>'; ?><br>
					</h5>
				</div>

				<div class="ibox-content">
					<div class="row">
						<div class="col-12">
							<label class="checkbox-inline i-checks"> 

								<?php 
								$chk = "";

								if(isset($row->api_1_vendedor) && !empty($row->api_1_vendedor) && ($reg->id == $row->api_1_vendedor)) { 
									$chk = "checked x11";
								} 

								if(isset($api_1_vendedor) && !empty($api_1_vendedor) && ($reg->id == $api_1_vendedor)) {
									$chk = "checked x12";
								}

									if(isset($cms_usuario->api_1_vendedor) && !empty($cms_usuario->api_1_vendedor) && ($reg->id == $cms_usuario->api_1_vendedor)) {
									$chk = "checked x13";
								}
								?>

								<input class="input-module-category me-2" name="api_1_vendedor" type="radio" value="<?php echo $reg->id; ?>" <?php echo $chk; ?>> 
								
								<div class=" ms-2">
									<b>Nome / Apelido: </b> 
									<?php echo (!empty($reg->nome)) ? $reg->nome : '<span class="text-danger">Não informado.</span>'; ?> / 
									<?php echo (!empty($reg->apelido)) ? $reg->apelido : '<span class="text-danger">Não informado.</span>'; ?><br>
									
									<b>CPF / RG: </b> 
									<?php echo (!empty($reg->cpf)) ? $reg->cpf : '<span class="text-danger">Não informado.</span>'; ?> / 
									<?php echo (!empty($reg->rg)) ? $reg->rg : '<span class="text-danger">Não informado.</span>'; ?><br>
									
									<b>Telefone / Celular: </b> 
									<?php echo (!empty($reg->telefone)) ? $reg->telefone : '<span class="text-danger">Não informado.</span>'; ?> / 
									<?php echo (!empty($reg->celular)) ? $reg->celular : '<span class="text-danger">Não informado.</span>'; ?><br>
									
									<b>E-mail: </b> 
									<?php echo (!empty($registro->email)) ? $registro->email : '<span class="text-danger">Não informado.</span>'; ?>
								</div>
							</label>
						</div>
					</div>
				</div>
			</div>
		</div>
	<?php } ?>		
</div>