$clientes = $cn
->where('m.estado', 0)
->groupBy('m.id_cliente')
->join('clientes c', 'c.id = m.id_cliente')
->get('clientes_empresas_mensuales m', null, ['c.id', 'c.razon_social']);
if(count($clientes) == 0) {
?>
No hay Solicitudes Pendientes
}
foreach ($clientes as $key => $cliente) :
?>
Cliente:
| Nº |
RUT |
Razón Social |
Período |
Acción |
$clientes = $cn
->where('m.estado', 0)
->where('m.id_cliente', $cliente['id'])
->join('clientes_empresas c', 'c.id = m.id_clientes_empresas')
->get('clientes_empresas_mensuales m', null, [
'm.id',
'c.rut_e',
'c.rz',
'm.mes',
'm.ano',
]);
$i = 1;
foreach ($clientes as $key => $cliente) {
?>
|
|
|
00- |
|
$i++;
}
?>
endforeach; ?>