diff --git a/app/Livewire/ProjectMap.php b/app/Livewire/ProjectMap.php index 423e52e..6344d40 100644 --- a/app/Livewire/ProjectMap.php +++ b/app/Livewire/ProjectMap.php @@ -26,6 +26,11 @@ class ProjectMap extends Component public $editResponsible = ''; public $editPhotos = []; public $formFullscreen = false; + // Tab management + public $activeTab = 'edit'; // edit, features, inspections + public $allFeatures = []; + public $allInspections = []; + // Templates e inspecciones public $templates = []; @@ -37,6 +42,9 @@ class ProjectMap extends Component public $showFeatureImages = false; public $featureImageMarkers = []; + // Tab management + public $activeTab = 'edit'; // edit or list + public function mount(Project $project) { $this->project = $project; diff --git a/resources/views/livewire/projects/project-map.blade.php b/resources/views/livewire/projects/project-map.blade.php index e6649c4..b6cc5ca 100644 --- a/resources/views/livewire/projects/project-map.blade.php +++ b/resources/views/livewire/projects/project-map.blade.php @@ -72,145 +72,228 @@ - -
Fase: {{ $selectedFeature->layer?->phase?->name ?? '—' }}
-Capa: {{ $selectedFeature->layer?->name ?? '—' }}
-Fase: {{ $selectedFeature->layer?->phase?->name ?? '—' }}
+Capa: {{ $selectedFeature->layer?->name ?? '—' }}
👆
+Haz clic en un elemento del mapa para editarlo
+| {{ __("Feature") }} | +{{ __("Layer") }} | +{{ __("Phase") }} | +{{ __("Progress") }} | +{{ __("Responsible") }} | +{{ __("Template") }} | ++ |
|---|---|---|---|---|---|---|
| {{ $feature->name }} | +{{ $feature->layer->name }} | +{{ $feature->layer->phase->name }} | +{{ $feature->progress }}% | +{{ $feature->responsible ?? '-' }} | +{{ $feature->template?->name ?? '-' }} | ++ + | +
📋
+{{ __("No features found") }}
+| {{ __("Date") }} | +{{ __("Feature") }} | +{{ __("Template") }} | +{{ __("User") }} | ++ |
|---|---|---|---|---|
| {{ $inspection->created_at->format('d/m/Y') }} | +{{ $inspection->feature->name }} | +{{ $inspection->template->name }} | +{{ $inspection->user->name }} | ++ + | +
📋
+{{ __("No inspections found") }}
👆
-Haz clic en un elemento del mapa para editarlo
-