@extends('layouts.app') @section('title','Report a Waste Issue') @push('styles') @endpush @section('content')
๐Ÿ—‘๏ธ Report a Waste Issue
Help keep Nigeria clean. Report illegal dumpsites and environmental hazards.
{{ $stats['totalVerified'] }}
Verified Reports
{{ $stats['totalPending'] }}
Pending Review
{{ $stats['byState']->count() }}
States Covered
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
{{-- Report Form --}}
Submit a Report
@csrf @guest
@else
Reporting as {{ auth()->user()->name }}
@endguest
{{-- Stats Panel --}}
{{-- Severity breakdown --}} @if($stats['bySeverity']->count())
@foreach(['low'=>['var(--gl)','๐ŸŸข'],'medium'=>['#fbbf24','๐ŸŸก'],'high'=>['#f87171','๐Ÿ”ด'],'critical'=>['#dc2626','โšซ']] as $sev=>[$color,$icon])
{{ $icon }}
{{ $stats['bySeverity'][$sev] ?? 0 }}
{{ $sev }}
@endforeach
@endif {{-- By State --}} @if($stats['byState']->count())
Reports by State
@php $maxState = $stats['byState']->max('total') ?: 1; @endphp @foreach($stats['byState']->take(8) as $row)
{{ $row->state }} {{ $row->total }}
@endforeach
@endif {{-- Top LGAs --}} @if($stats['byLga']->count())
Top LGAs
@foreach($stats['byLga']->take(8) as $row)
{{ $row->lga }}
{{ $row->state }}
{{ $row->total }} reports
@endforeach
@endif
@push('scripts') @endpush @endsection