@extends('admin.layouts.app') @section('title', 'Feasibility Reports') @section('breadcrumb') Feasibility Reports @endsection @section('content')
Reports
@forelse($reports as $report) @php $statusColors = ['pending'=>'badge-orange','processing'=>'badge-blue','completed'=>'badge-green','failed'=>'badge-red']; $score = $report->feasibility_score ?? 0; $scoreColor = $score >= 70 ? 'var(--vsc-green-terminal)' : ($score >= 40 ? 'var(--vsc-orange)' : 'var(--vsc-red)'); @endphp @empty @endforelse
Report ID Location State User Feasibility Score Status Created Actions
#{{ str_pad($report->id, 5, '0', STR_PAD_LEFT) }}
{{ Str::limit($report->address ?? '—', 30) }}
{{ $report->latitude ? number_format($report->latitude, 4).'°N' : '' }} {{ $report->longitude ? number_format($report->longitude, 4).'°E' : '' }}
{{ $report->state?->code ?? '—' }} {{ $report->user?->name ?? 'System' }}
{{ $score }}%
{{ ucfirst($report->status ?? 'pending') }} {{ $report->created_at->format('d M Y') }}
@if($report->status === 'completed') @endif
@csrf @method('DELETE')
No feasibility reports yet
@if(isset($reports) && method_exists($reports, 'links') && $reports->hasPages()) {{ $reports->links('vendor.pagination.admin') }} @endif
@endsection