<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Flowieons Report</title>
    <style>
        body { font-family: Arial, sans-serif; font-size: 14px; }
        h1 { margin-bottom: 4px; }
        .muted { color: #555; }
        table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        td, th { border: 1px solid #ccc; padding: 8px; }
    </style>
</head>
<body>
<h1>Flowieons {{ ucfirst($snapshot->period) }} Report</h1>
<div class="muted">{{ $snapshot->from_date->format('Y-m-d') }} to {{ $snapshot->to_date->format('Y-m-d') }}</div>
<table>
<thead><tr><th>Metric</th><th>Value</th></tr></thead>
<tbody>
@foreach($snapshot->payload['summary'] as $k => $v)
<tr><td>{{ ucfirst(str_replace('_', ' ', $k)) }}</td><td>{{ $v }}</td></tr>
@endforeach
</tbody>
</table>
</body>
</html>
