@extends('layouts.app') @section('title', 'Trámite #' . $tramite->id) @section('content') {{-- Cabecera de página --}}

Trámite #{{ $tramite->id }}

Detalle completo del proceso documental y seguimiento de pagos

{{-- Notificaciones --}} @if(session('success')) @endif @php $tiposPago = [ 0 => ['label' => 'Impuestos', 'icon' => 'fa-receipt', 'color' => 'secondary'], 1 => ['label' => 'Minuta', 'icon' => 'fa-file-alt', 'color' => 'primary'], 2 => ['label' => 'Transferencia', 'icon' => 'fa-exchange-alt', 'color' => 'info'], 3 => ['label' => 'Protocolo', 'icon' => 'fa-book', 'color' => 'dark'], 4 => ['label' => 'Plano de Lote', 'icon' => 'fa-map', 'color' => 'success'], 5 => ['label' => 'Visado de Plano', 'icon' => 'fa-check-square', 'color' => 'warning'], 6 => ['label' => 'Minuta Datos Técnicos', 'icon' => 'fa-file-signature', 'color' => 'purple'], 7 => ['label' => 'Derechos Reales', 'icon' => 'fa-building', 'color' => 'danger'], ]; $paramLote = [ 'urb' => $tramite->urbanizacion, 'dis' => $tramite->distrito, 'man' => $tramite->manzano, 'lot' => $tramite->lote, 'idcliente' => $tramite->idcliente, 'idcontrato' => $tramite->idcontrato, ]; $f = fn($v) => ($v && $v !== '0000-00-00') ? \App\Helpers\FechaHelper::bdToLocal($v) : ''; @endphp
{{-- ── COLUMNA IZQUIERDA: PAGOS ── --}}

Pagos de Trámite

@foreach($tiposPago as $tipo => $info) @php $pagoExiste = $pagosExistentes->get($tipo); @endphp @endforeach
Concepto Bs $us Estado Acción
{{ $info['label'] }} {{ $pagoExiste ? number_format((float)$pagoExiste->montobs, 2) : '—' }} {{ $pagoExiste ? number_format((float)$pagoExiste->montosus, 2) : '—' }} @if($pagoExiste) @else ... @endif @if($pagoExiste) @else @endif
{{-- ── COLUMNA DERECHA: RESUMEN CONTRATO ── --}}

Resumen del Contrato

Nro Contrato {{ $tramite->idcontrato }}
Fecha {{ $f($tramite->fecha) }}
Urbanización {{ $urbanizacion->nombre ?? '—' }}
Ubicación (M/L) {{ $distrito->nomcorto ?? '—' }} {{ $tramite->manzano }} / {{ $tramite->lote }}
Cliente Titular
{{ $cliente->nombre ?? $tramite->idcliente }} @if($tramite->conyugue) {{ $tramite->conyugue }} @endif
{{-- ── Secciones de Seguimiento ── --}}

Seguimiento de Etapas

{{-- Columna izquierda seguimiento --}}
{{-- Elaboración de Minuta --}}

Elaboración de Minuta

@if($abogado)
Abogado: {{ $abogado->nombre }}
@endif
{{-- Protocolización --}}

Protocolización

@if($protocolo)
Testimonio:
{{ $protocolo->testimonio ?? '—' }}
Notario:
{{ $notarioPro->nombre ?? '—' }}
@endif
{{-- Planos de Lote --}}

Planos de Lote

@if($plano) @if($arquitecto)
Arquitecto:
{{ $arquitecto->nombre }}
@endif @endif
{{-- Columna derecha seguimiento --}}
{{-- Transferencia --}}

Transferencia

@if($transferencia) @if($transferencia->observaciones)
Observaciones:
{{ $transferencia->observaciones }}
@endif @endif
{{-- Minutas / Aclaratorias --}}

Minutas / Aclaratorias

@if($minuta)
Testimonio:
{{ $minuta->testimonio ?? '—' }}
Notario:
{{ $notarioMin->nombre ?? '—' }}
@endif
{{-- Derechos Reales --}}

Derechos Reales

@if($ddrr)
@if($ddrr->ddrr) Folio: {{ $ddrr->ddrr }} @endif @if($ddrr->entregadoa)
Entregado a: {{ $ddrr->entregadoa }}
@endif
@endif
@endsection