@extends('layouts.admin') @section('title', 'Social analytics') @section('content') @if($sandbox) Sandbox mode @endif
@csrf
@if(session('status'))
{{ session('status') }}
@endif
Accounts {{ number_format($summary['accounts'] ?? 0) }} {{ number_format($summary['days'] ?? 0) }} day rows
Impressions {{ number_format($summary['totals']['impressions'] ?? 0) }}
Engagements {{ number_format($summary['totals']['engagements'] ?? 0) }}
Publishes {{ number_format($summary['totals']['publishes'] ?? 0) }} {{ number_format($summary['totals']['clicks'] ?? 0) }} clicks
@if(!empty($summary['by_account']))
@foreach($summary['by_account'] as $row)
{{ $row['network'] ?? 'Account #'.$row['social_account_id'] }}
{{ $row['days'] }} day(s)
Impressions
{{ number_format($row['totals']['impressions'] ?? 0) }}
Engagements
{{ number_format($row['totals']['engagements'] ?? 0) }}
Reach
{{ number_format($row['totals']['reach'] ?? 0) }}
Clicks
{{ number_format($row['totals']['clicks'] ?? 0) }}
@endforeach
@endif
@forelse($recent as $row) @empty @endforelse
Date Account Impressions Engagements Publishes
{{ $row->metric_date?->toDateString() ?? $row->metric_date }} {{ $row->account?->name ?? $row->account?->network }} {{ number_format(data_get($row->metrics, 'impressions', 0)) }} {{ number_format(data_get($row->metrics, 'engagements', 0)) }} {{ number_format(data_get($row->metrics, 'publishes', 0)) }}
No metrics yet. Click Sync sandbox insights to seed daily rows.
@endsection