@extends('layouts.app') @section('title', 'Account Reports') @section('topbar-actions')
@csrf
@endsection @section('content') {{-- Date filter --}}
{{-- Totals --}} @if($totals)
Total Calls
{{ number_format($totals->total_calls ?? 0) }}
Messages
{{ number_format($totals->total_messages ?? 0) }}
Bookings
{{ number_format($totals->total_bookings ?? 0) }}
Total Spend
${{ number_format($totals->total_spend ?? 0, 2) }}
@endif {{-- Table --}}
@forelse($reports as $report) @empty @endforelse
Date Account Business Impressions Calls Messages Bookings Spend ⭐ Rating
{{ $report->report_date->format('M j, Y') }} {{ $report->account_id }} {{ $report->business_name ?? '—' }} {{ number_format($report->impressions) }} {{ number_format($report->phone_calls) }} {{ number_format($report->messages) }} {{ number_format($report->bookings) }} ${{ number_format($report->total_cost, 2) }} @if($report->average_five_star_rating) ⭐ {{ number_format($report->average_five_star_rating, 1) }} ({{ $report->num_reviews }}) @else @endif
No report data for this date range. Sync to pull data from Google LSA.
@endsection