@extends('adminlte::page')
@section('title', 'Reports — Retailer Visit')
@section('content_header')
@if ($report->total === 0)
No submissions found for the selected period.
@else
{{-- ── Headline stat cards ──────────────────────────────────────────────── --}}
{{-- ── Status breakdown ──────────────────────────────────────────────── --}}
@foreach ($report->statusBreakdown as $status => $count)
| {{ $status }} |
{{ $count }} |
{{ $report->total > 0 ? round($count / $report->total * 100, 1) : 0 }}%
|
@endforeach
{{-- ── Shop size ───────────────────────────────────────────────────────── --}}
@forelse ($report->sizeBreakdown as $size => $count)
| {{ $size }} |
{{ $count }} |
{{ $report->scored > 0 ? round($count / $report->scored * 100, 1) : 0 }}%
|
@empty
| — |
@endforelse
{{-- ── Key metrics ────────────────────────────────────────────────────── --}}
| Road-visible |
{{ $report->visibleFromRoad }} / {{ $report->scored }} |
| High footfall |
{{ $report->highFootfall }} / {{ $report->scored }} |
| Avg customers (10 min) |
{{ $report->avgCustomers }} |
| Has anchor product |
{{ $report->hasAnchor }} / {{ $report->scored }} |
| Owner at counter |
{{ $report->ownerAtCounter }} / {{ $report->scored }} |
{{-- ── Anchor types ────────────────────────────────────────────────────── --}}
@forelse ($report->anchorTypes as $type => $count)
| {{ $type }} |
{{ $count }} |
@empty
| None recorded |
@endforelse
{{-- ── Digital payment ─────────────────────────────────────────────────── --}}
@forelse ($report->digitalPayment as $method => $count)
| {{ $method }} |
{{ $count }} |
@empty
| None recorded |
@endforelse
@endif {{-- total > 0 --}}
@endsection