@php $summaryRows = $postSummary['rows'] ?? []; $summaryTotals = $postSummary['totals'] ?? ['spend' => 0, 'conversions' => 0, 'interactions' => 0]; $periodLabel = ($reportStartDate && $reportEndDate) ? \Illuminate\Support\Carbon::parse($reportStartDate)->format('d/m/Y').' — '.\Illuminate\Support\Carbon::parse($reportEndDate)->format('d/m/Y') : 'Metriques lifetime'; @endphp @if (! $withDetails) {{-- Synthese-only layout --}}
Meta Ads
Rapport synthese
{{ $connection->ad_account_name }}
ID {{ $connection->ad_account_id }}
{{ $periodLabel }}
Genere le
{{ now()->format('d/m/Y H:i') }}
Spend total
{{ number_format($summaryTotals['spend'], 2, ',', ' ') }} $
{{ number_format($summaryTotals['spend'] * $usdToTndRate, 2, ',', ' ') }} TND
Publications
{{ count($summaryRows) }}
{{ count($selectedPostNames) }} selectionnee(s)
Publications incluses
@foreach ($selectedPostNames as $postName) {{ $postName }} @endforeach
Performance par publication
@include('integrations.meta.partials.post-report-summary-pdf', [ 'postSummary' => $postSummary, 'usdToTndRate' => $usdToTndRate, 'modern' => true, ])
109 CRM — Rapport Meta Ads — {{ $connection->ad_account_name }}
@else {{-- Detailed layout --}}

Rapport publications Meta Ads

{{ $connection->ad_account_name }} ({{ $connection->ad_account_id }})

Genere le {{ now()->format('d/m/Y H:i') }}

Publications : @foreach ($selectedPostNames as $postName) {{ $postName }} @endforeach

Periode : {{ $periodLabel }}

Spend total
{{ number_format($postReport['totals']['spend'], 2, ',', ' ') }} $
{{ number_format($postReport['totals']['spend'] * $usdToTndRate, 2, ',', ' ') }} TND
Couverture
{{ number_format($postReport['totals']['conversions'], 0, ',', ' ') }}
Interactions
{{ number_format($postReport['totals']['interactions'], 0, ',', ' ') }}

Synthese par publication

@include('integrations.meta.partials.post-report-summary-pdf', [ 'postSummary' => $postSummary, 'usdToTndRate' => $usdToTndRate, 'modern' => true, ]) @include('integrations.meta.partials.post-report-objective-pdf', [ 'objectiveKey' => 'conversion', 'objectiveData' => $postReport['by_objective']['conversion'], 'usesDailyMetrics' => $postReport['uses_daily_metrics'], 'usdToTndRate' => $usdToTndRate, ]) @include('integrations.meta.partials.post-report-objective-pdf', [ 'objectiveKey' => 'interaction', 'objectiveData' => $postReport['by_objective']['interaction'], 'usesDailyMetrics' => $postReport['uses_daily_metrics'], 'usdToTndRate' => $usdToTndRate, ]) @if (($postReport['ads_with_metrics'] ?? []) === [])

Aucune ad trouvee pour les publications selectionnees.

@endif
@endif