@extends('layouts.app') @section('title', 'Dashboard') @section('page-specific-style') @endsection @section('content')
| Source | Account Name | Impressions | Clicks | CTR | CPC | Conversions | Spend | Date |
|---|---|---|---|---|---|---|---|---|
| {{ strtoupper($insight->source ?? 'N/A') }} | {{ $insight->account_name ?? 'N/A' }} | {{ formatNumberShort($insight->impressions ?? 0) }} | {{ formatNumberShort($insight->clicks ?? 0) }} | {{ $insight->ctr ?? 0 }} | {{ $insight->cpc ?? 0 }} | {{ formatNumberShort($insight->conversions ?? 0) }} | ${{ number_format($insight->spend ?? 0, 2) }} | {{ $insight->date_start ? \Carbon\Carbon::parse($insight->date_start)->format('j M Y') : 'N/A' }} |
| Data not found! | ||||||||
| Total | {{ formatNumberShort($accountInsightsTotals->impressions ?? 0) }} | {{ formatNumberShort($accountInsightsTotals->clicks ?? 0) }} | {{ formatNumberShort($accountInsightsTotals->conversions ?? 0) }} | ${{ number_format($accountInsightsTotals->spend ?? 0, 2) }} | ||||
| Source | Campaign Name | Impressions | Clicks | Spend | Conversions | Date |
|---|---|---|---|---|---|---|
| {{ strtoupper($insight->source ?? 'N/A') }} | {{ $insight->campaign_name ?? 'N/A' }} | {{ formatNumberShort($insight->impressions ?? 0) }} | {{ formatNumberShort($insight->clicks ?? 0) }} | ${{ number_format($insight->spend ?? 0, 2) }} | {{ formatNumberShort($insight->conversions ?? 0) }} | {{ $insight->date_start ? \Carbon\Carbon::parse($insight->date_start)->format('j M Y') : 'N/A' }} |
| Data not found! | ||||||
| Total | {{ formatNumberShort($campaignInsightsTotals->impressions ?? 0) }} | {{ formatNumberShort($campaignInsightsTotals->clicks ?? 0) }} | ${{ number_format($campaignInsightsTotals->spend ?? 0, 2) }} | {{ formatNumberShort($campaignInsightsTotals->conversions ?? 0) }} | ||
| Source | Name | Impressions | Clicks | Spend | Date |
|---|---|---|---|---|---|
| {{ strtoupper($insight->source ?? 'N/A') }} | {{ $insight->name ?? 'N/A' }} | {{ formatNumberShort($insight->impressions ?? 0) }} | {{ formatNumberShort($insight->clicks ?? 0) }} | ${{ number_format($insight->spend ?? 0, 2) }} | {{ $insight->date_start ? \Carbon\Carbon::parse($insight->date_start)->format('j M Y') : 'N/A' }} |
| Data not found! | |||||
| Total | {{ formatNumberShort($adInsightsTotals->impressions ?? 0) }} | {{ formatNumberShort($adInsightsTotals->clicks ?? 0) }} | ${{ number_format($adInsightsTotals->spend ?? 0, 2) }} | ||
| Source | New | Open | Won | Closed |
|---|---|---|---|---|
| {{ $source == '' || $source == null ? 'Null' : $source }} | {{ $counts['new'] }} | {{ $counts['open'] }} | {{ $counts['won'] }} | {{ $counts['closed'] }} |
| Data not found! | ||||
| Null | {!! $totals['new'] - array_sum(array_column($summary, 'new')) > 0 ? $totals['new'] - array_sum(array_column($summary, 'new')) : 0 !!} | {!! $totals['open'] - array_sum(array_column($summary, 'open')) > 0 ? $totals['open'] - array_sum(array_column($summary, 'open')) : 0 !!} | {!! $totals['won'] - array_sum(array_column($summary, 'won')) > 0 ? $totals['won'] - array_sum(array_column($summary, 'won')) : 0 !!} | {!! $totals['closed'] - array_sum(array_column($summary, 'closed')) > 0 ? $totals['closed'] - array_sum(array_column($summary, 'closed')) : 0 !!} |
| Total | {{ $totals['new'] }} | {{ $totals['open'] }} | {{ $totals['won'] }} | {{ $totals['closed'] }} |
| Agent | New | Open | Won | Closed |
|---|---|---|---|---|
| {{ $user->name }} | {{ $new }} | {{ $open }} | {{ $won }} | {{ $closed }} |
| No agents found | ||||
| Null | {{-- sum of new from the able and minus $$totalLeadCount --}} {!! $totals['new'] - $agentTotals['new'] > 0 ? $totals['new'] - $agentTotals['new'] : 0 !!} | {!! $totals['open'] - $agentTotals['open'] > 0 ? $totals['open'] - $agentTotals['open'] : 0 !!} | {!! $totals['won'] - $agentTotals['won'] > 0 ? $totals['won'] - $agentTotals['won'] : 0 !!} | {!! $totals['closed'] - $agentTotals['closed'] > 0 ? $totals['closed'] - $agentTotals['closed'] : 0 !!} |
| Total | {{ $totals['new'] }} | {{ $totals['open'] }} | {{ $totals['won'] }} | {{ $totals['closed'] }} |
| No data found | ||||