@extends('layouts.app', ['title' => 'Ad spend']) @section('content') @php($cur = $currentAccount->currency)

Ad spend

{{ $monthLabel }}: {{ money_format_short($total, $cur) }} spent, {{ number_format($leads) }} new leads{{ $cpl !== null ? ', '.money_format_short(round($cpl, 2), $cur).' per lead' : '' }}.

By channel
@forelse ($byChannel as $channel => $sum)
{{ \App\Models\AdSpend::CHANNELS[$channel] ?? $channel }}{{ money_format_short($sum, $cur) }}
@empty
No spend recorded for {{ $monthLabel }}.
@endforelse
Entries
@if ($entries->isNotEmpty())
@foreach ($entries as $e) @endforeach
DateChannelCampaignAmountAdded by
{{ $e->spent_on->format('d M') }} {{ \App\Models\AdSpend::CHANNELS[$e->channel] ?? $e->channel }} {{ $e->campaign ?? '—' }}@if ($e->notes)
{{ $e->notes }}
@endif
{{ money_format_short($e->amount, $cur) }} {{ $e->user?->name }} @can('funnels.manage')
@csrf @method('DELETE')
@endcan
@else
No entries.
@endif
@can('funnels.manage')
Record spend
@csrf
@error('spent_on')
{{ $message }}
@enderror
@error('amount')
{{ $message }}
@enderror

Automatic sync from Meta and Google Ads comes with the integrations App Store.

@endcan
@endsection