Files
ladill-link/resources/views/links/partials/analytics-breakdown.blade.php
T
isaaccladandCursor 0e5e0f6ca5
Deploy Ladill Link / deploy (push) Successful in 32s
Add device, platform, and country analytics to link show page.
Record parsed user-agent and geo data on clicks, then surface breakdowns and richer recent-click context on per-link and account analytics views.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 19:32:40 +00:00

16 lines
651 B
PHP

@props(['title', 'rows', 'empty' => 'No data yet'])
<div class="rounded-xl border border-slate-200 bg-white p-5">
<h3 class="text-sm font-semibold text-slate-900">{{ $title }}</h3>
<ul class="mt-4 space-y-2.5">
@forelse($rows as $row)
<li class="flex items-center justify-between gap-3 text-sm">
<span class="truncate text-slate-600">{{ $row['label'] }}</span>
<span class="shrink-0 font-semibold text-slate-900">{{ number_format($row['total']) }}</span>
</li>
@empty
<li class="text-sm text-slate-400">{{ $empty }}</li>
@endforelse
</ul>
</div>