@extends('layouts.vuexy') @section('title', 'Dashboard') @php $fmtMoney = fn ($v) => $v === null ? '—' : number_format($v, 2).' €'; $fmtPct = fn ($v) => $v === null ? '—' : number_format($v, 2).' %'; $fmtNum = fn ($v) => $v === null ? '—' : number_format($v); $fmtRoas = fn ($v) => $v === null ? '—' : number_format($v, 2).'x'; @endphp @section('content')
Rendimiento agregado de todas las campañas, leído de performance_snapshots.
marketing:sync-insights.
@endif
marketing:sync-insights. Mientras
tanto puedes generar datos de ejemplo con
php artisan marketing:seed-demo-performance <id de una campaña>.
| Campaña | Restaurante | Impresiones | Clics | CTR | Gasto | CPI | CPA | ROAS |
|---|---|---|---|---|---|---|---|---|
| {{ $row->campaign->name }} @if ($row->is_simulated) Datos de ejemplo @endif | {{ $row->campaign->restaurant_name }} | {{ $row->has_data ? $fmtNum($row->impressions) : '—' }} | {{ $row->has_data ? $fmtNum($row->clicks) : '—' }} | {{ $fmtPct($row->ctr) }} | {{ $row->has_data ? $fmtMoney($row->spend) : '—' }} | {{ $fmtMoney($row->cpi) }} | {{ $fmtMoney($row->cpa) }} | {{ $fmtRoas($row->roas) }} |