<div class="card">
    <div class="card-header"><h4 class="card-title mb-0">GA4 — Trafik Kanalları</h4></div>
    <div class="card-body p-0">
        <div class="table-responsive">
            <table class="table table-striped mb-0"><thead><tr><th>Tarih</th><th>Kanal</th><th>Oturum</th><th>Kullanıcı</th><th>Sayfa Görüntüleme</th><th>Dönüşüm</th><th>Gelir</th></tr></thead><tbody>
            @forelse($ga4Rows as $row)
                <tr><td>{{ $row->date?->format('d.m.Y') }}</td><td>{{ $row->dimension_value }}</td><td>{{ number_format($row->sessions, 0, ',', '.') }}</td><td>{{ number_format($row->total_users, 0, ',', '.') }}</td><td>{{ number_format($row->screen_page_views, 0, ',', '.') }}</td><td>{{ number_format((float)$row->conversions, 2, ',', '.') }}</td><td>{{ number_format((float)$row->total_revenue, 2, ',', '.') }}</td></tr>
            @empty
                <tr><td colspan="7" class="text-center text-muted py-4">Henüz GA4 snapshot yok.</td></tr>
            @endforelse
            </tbody></table>
        </div>
    </div>
</div>
