@extends('layouts.app') @section('content')

Lote #{{ $lote->id }}

{{ $lote->urbanizacionRel->nombre ?? 'Sin Urbanización' }} | Distrito: {{ $lote->distrito->nombre ?? '—' }} | Manzano: {{ $lote->manzano }}

{{ $lote->estado_texto }}
{{-- Columna Principal: Datos Técnicos --}}

Información Técnica

  • Número de Lote {{ $lote->nombre }}
  • Superficie Total {{ number_format($lote->superf, 2) }} m²
  • Tipo de Ubicación {{ $lote->tipo_texto }}
  • Individualización @if($lote->telef) REGISTRADO @else Pendiente @endif
  • Código de Sistema #{{ $lote->id }}

Observaciones

{{ $lote->observ ?: 'Sin observaciones registradas.' }}

{{-- Datos Relacionados (Contrato) --}}

Información del Contrato

@if($contrato)
{{ $contrato->nomcli }}
Cliente: {{ $contrato->codcli }}

Fecha de Firma
{{ \Carbon\Carbon::parse($contrato->fecha)->format('d/m/Y') }}
Enlace Cliente
Ver Perfil
@else

Este lote no tiene un contrato de venta activo actualmente.

@endif
{{-- Columna Lateral: Servicios y Estado --}}
{{-- Servicios --}}

Servicios Disponibles

@foreach([ 'alcanta' => ['label' => 'Alcantarillado', 'icon' => 'fa-water'], 'luz' => ['label' => 'Luz', 'icon' => 'fa-bolt'], 'agua' => ['label' => 'Agua', 'icon' => 'fa-tint'], 'transpor' => ['label' => 'Transporte', 'icon' => 'fa-bus'], 'cordon' => ['label' => 'Cordón de Acera', 'icon' => 'fa-ruler-horizontal'], 'acera' => ['label' => 'Acera', 'icon' => 'fa-walking'], 'muralla' => ['label' => 'Muralla', 'icon' => 'fa-border-all'], ] as $campo => $info) @endforeach
{{ $info['label'] }} @if($lote->$campo) @else @endif
{{-- Historial de Estado --}}

Estatus del Lote

{{-- Botonera de Acciones --}}
Volver @if(in_array(auth()->user()->tipo, [1,4])) Modificar @endif @if(auth()->user()->tipo == 1) @endif
@endsection @push('scripts') @endpush