Editor
@if($selectedFeature)
{{-- Feature seleccionado --}}
{{ $selectedFeature->name ?? 'Elemento' }}
Fase: {{ $selectedFeature->layer?->phase?->name ?? '—' }}
Capa: {{ $selectedFeature->layer?->name ?? '—' }}
{{-- Progreso --}}
{{-- Templates / Inspecciones --}}
@if($templates->isNotEmpty())
Inspección
@if($selectedTemplateId && !empty($inspectionFormData))
@php $template = $templates->firstWhere('id', $selectedTemplateId); @endphp
@if($template)
@foreach($template->fields as $field)
@endforeach
@endif
@endif
{{-- Historial de inspecciones --}}
@if($inspectionHistory->isNotEmpty())
Historial
@foreach($inspectionHistory as $ins)
{{ $ins->template?->name ?? 'Inspección' }}
{{ $ins->created_at->diffForHumans() }}
@if($ins->user)
por {{ $ins->user->name }}@endif
@endforeach
@endif
@else
Sin plantillas
Crea una plantilla de inspección para este proyecto.
Crear
@endif
@else
👆
Haz clic en un elemento del mapa para editarlo
@endif