@extends('admin.layouts.app') @section('title', 'Heatmap Management') @section('breadcrumb') Spatial Intelligence / Heatmap @endsection @section('content') @include('admin.spatial._tabs') {{-- Generate / Clear Controls ────────────────────────────────────── --}}
Generate Heatmap
@csrf
Clear Heatmap Data
@csrf @method('DELETE')
{{-- Heatmap Cells Table ──────────────────────────────────────────── --}}
Heatmap Cells ({{ $cells->total() }} total)
@forelse($cells as $cell) @empty @endforelse
Location Avg Score Avg FAR Max Height Reports Zone Type Computed
{{ number_format($cell->lat, 4) }}, {{ number_format($cell->lng, 4) }} @php $scoreColor = $cell->avg_feasibility_score >= 70 ? '#4ec980' : ($cell->avg_feasibility_score >= 50 ? '#ffc832' : ($cell->avg_feasibility_score >= 30 ? '#ff9640' : '#ff6b6b')); @endphp {{ number_format($cell->avg_feasibility_score, 1) }} {{ $cell->avg_far ? number_format($cell->avg_far, 2) : '—' }} {{ $cell->avg_max_height_m ? number_format($cell->avg_max_height_m, 1).'m' : '—' }} {{ $cell->report_count }} {{ $cell->dominant_zone_type ?? '—' }} {{ $cell->computed_at ? $cell->computed_at->diffForHumans() : '—' }}
No heatmap cells generated yet. Use the Generate tool above.
{{ $cells->links('vendor.pagination.admin') }}
@endsection