Principal
{{ $usuario->nombre }}
•
{{ $bd }}
•
{{ $fechaSistema }}
•
TC: {{ $tc }}
{{-- Clientes Activos --}}
{{-- Contratos Vigentes --}}
{{-- Cobranza del Mes (Bs) --}}
{{-- Lotes Totales --}}
{{-- En Trámite --}}
{{-- Cuotas Vencidas (crítico) --}}
{{-- ============================================================ --}}
{{-- SECCIÓN 5: ESTADO DE LOTES (panorama general) --}}
{{-- ============================================================ --}}
@php
$total = max($loteStats['total'], 1);
$loteBars = [
['key'=>'disponible', 'label'=>'Disponible', 'color'=>'bg-success', 'icon'=>'fa-check-circle'],
['key'=>'reservado', 'label'=>'Reservado', 'color'=>'bg-danger', 'icon'=>'fa-bookmark'],
['key'=>'en_proceso', 'label'=>'En Proceso', 'color'=>'bg-warning', 'icon'=>'fa-spinner'],
['key'=>'vendido', 'label'=>'Vendido', 'color'=>'bg-primary', 'icon'=>'fa-check-double'],
['key'=>'en_tramite', 'label'=>'En Trámite', 'color'=>'bg-info', 'icon'=>'fa-file-alt'],
['key'=>'consolidado', 'label'=>'Consolidado', 'color'=>'bg-secondary','icon'=>'fa-check'],
];
@endphp
{{ number_format($totalClientes) }}
Clientes
registrados
{{ number_format($contratosVigentes) }}
Contratos vigentes
+{{ $contratosEsteMes }} este mes
Bs {{ number_format((float)$cobranzaMes, 0) }}
Cobranza del mes
≈ $ {{ number_format((float)$cobranzaMesSus, 2) }} USD
{{ number_format($loteStats['total']) }}
Lotes totales
{{ $loteStats['disponible'] }} disponibles
{{ number_format($loteStats['en_tramite']) }}
En trámite
{{ $loteStats['consolidado'] }} consolidados
{{ number_format($cuotasVencidas) }}
Cuotas vencidas
$ {{ number_format((float)$saldoVencido, 0) }} USD
Estado de Lotes Total: {{ number_format($loteStats['total']) }} lotes
@foreach($loteBars as $b)
@endforeach
{{ $b['label'] }}
{{ number_format($loteStats[$b['key']]) }}
Evolución de Cobranza
Nuevos Contratos
{{-- Últimos Contratos --}}
{{-- Últimos Recibos --}}
{{-- Actividad del Sistema --}}
{{-- ============================================================ --}}
{{-- SECCIÓN 8: TOP URBANIZACIONES (contexto geográfico) --}}
{{-- ============================================================ --}}
@if($topUrbs->count() > 0)
Últimos Contratos
| N° | Cliente | Fecha | Total | Tipo |
|---|---|---|---|---|
| #{{ $c->id }} | {{ $c->nom_cliente }} | {{ $c->fecha_local }} | ${{ number_format((float)$c->total, 0) }} | {{ $c->tipo_label }} |
| No hay contratos registrados | ||||
Últimos Recibos
| N° | Cliente | Bs | USD |
|---|---|---|---|
| #{{ $r->id }} | {{ $r->nom_cliente }} | Bs {{ number_format((float)$r->montocob, 2) }} | $ {{ number_format((float)$r->montocod, 2) }} |
| No hay recibos registrados | |||
Actividad Reciente
@forelse($actividad as $a)
@php
$badgeClass = match(strtolower($a->tipomov_texto)) {
'nuevo' => 'bg-success',
'modificar' => 'bg-primary',
'eliminar' => 'bg-danger',
'login', 'logout' => 'bg-info',
default => 'bg-secondary',
};
$iconMap = [
'nuevo' => 'fa-plus',
'modificar' => 'fa-edit',
'eliminar' => 'fa-trash',
'login' => 'fa-sign-in-alt',
'logout' => 'fa-sign-out-alt',
];
$icon = $iconMap[strtolower($a->tipomov_texto)] ?? 'fa-bell';
@endphp
@empty
@endforelse
{{ $a->tipomov_texto }}
{{ $a->tipoid_texto ?: 'Registro' }} · ID {{ $a->id }}
{{ $a->login }}
{{ $a->fecha_local }}
{{ $a->hora }}
{{ $a->hora }}
Sin actividad reciente
Top Urbanizaciones por cantidad de contratos vigentes
@php $maxUrb = $topUrbs->max('total'); @endphp
@foreach($topUrbs as $u)
@endforeach
{{ $u->nombre }}
{{ number_format($u->total) }} contratos
Datos actualizados al {{ $fechaSistema }}
•
Base: {{ $bd }}