@extends('padre.padre') @section('contenido')

Catálogo de Terceros Contables

Gestión integral de Clientes, Proveedores, Empleados y Terceros tributarios (DIAN / Exógena)

Exportar Excel

Total Terceros

{{ number_format($totalTerceros) }}

Personas Jurídicas

{{ number_format($totalJuridicos) }}

Personas Naturales

{{ number_format($totalNaturales) }}

Empleados en Nómina

{{ number_format($totalEmpleados) }}

@if(!empty($filtros)) ✖ @endif
@forelse($terceros as $t) @php $tipoIdRaw = $t->tipoId ?? 'CC'; $natRaw = $t->naturaleza ?? ''; $tipoIdNorm = \App\Http\Controllers\TercerosController::normalizarTipoId($tipoIdRaw); $natNorm = \App\Http\Controllers\TercerosController::normalizarNaturaleza($natRaw, $tipoIdRaw); $esJur = ($natNorm === 'JURIDICAS'); $esEmp = !empty($t->es_empleado); $avatarCls = $esEmp ? 'avatar-empleado' : ($esJur ? 'avatar-juridica' : 'avatar-natural'); $inicial = strtoupper(substr($t->Nombre, 0, 1)); $natLabel = $esJur ? 'Jurídica' : 'Natural'; @endphp @empty @endforelse
# Identificación / NIT Razón Social / Nombre Completo Tipo / Naturaleza Contacto Ciudad Régimen Fiscal Estado Acciones
@if($esEmp) @elseif($esJur) @else {{ $inicial }} @endif
{{ $t->cedula }} @if(!empty($t->dv)) -{{ $t->dv }} @endif
Tipo: {{ $tipoIdNorm }}
{{ $t->Nombre }} {{ $t->apellido ?? '' }}
@if(!empty($t->Alias) && $t->Alias !== $t->Nombre)
{{ $t->Alias }}
@endif
{{ $natLabel }} @if($esEmp) Empleado @endif
{{ $t->telefono ?: 'S/N' }}
{{ $t->correo ?: 'Sin correo' }}
@if(!empty($t->nombre_ciudad)) {{ $t->nombre_ciudad }} @if(!empty($t->nombre_departamento)) ({{ $t->nombre_departamento }}) @endif
Cód: {{ $t->codigociudad }}
@elseif(!empty($t->codigociudad)) {{ $t->codigociudad }} @else No registrada @endif
{{ $t->direccion ?: 'Sin dirección' }}
{{ $t->regimen ?: 'No especificado' }} {{ $t->estadoC == 1 ? 'ACTIVO' : 'INACTIVO' }}
No se encontraron terceros registrados con los filtros aplicados.
Mostrando {{ $terceros->firstItem() ?? 0 }} a {{ $terceros->lastItem() ?? 0 }} de {{ number_format($terceros->total()) }} terceros
@if($terceros->hasPages())
{{-- Botón Primera Página --}} @if ($terceros->currentPage() > 2) @endif {{-- Botón Anterior --}} @if ($terceros->onFirstPage()) Anterior @else Anterior @endif {{-- Números de Página --}} @foreach ($terceros->getUrlRange(max(1, $terceros->currentPage() - 2), min($terceros->lastPage(), $terceros->currentPage() + 2)) as $page => $url) @if ($page == $terceros->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach {{-- Botón Siguiente --}} @if ($terceros->hasMorePages()) Siguiente @else Siguiente @endif {{-- Botón Última Página --}} @if ($terceros->currentPage() < $terceros->lastPage() - 1) @endif
@endif
@csrf
@endsection