{{-- Filters --}}
Last Month: {{ $lastMonthLabel }}
This Month: {{ $thisMonthLabel }}
{{-- Navigation + actions --}}
Slide / {{ 7 }}
{{-- Slide dots --}}
@for($i = 0; $i < 7; $i++)
@endfor
{{-- Fullscreen inner controls (visible only in fullscreen) --}}
/ 7
{{-- ════════════════════════════════════════════════════════════════
SLIDE 1 — Finance Overview (Last Month)
════════════════════════════════════════════════════════════════ --}}
@if(!$d['finLast'])
No finance report found for {{ $lastMonthLabel }}
@else
@php
$income = $d['finLast']->total_income ?? 0;
$expense = $d['finLast']->total_expense ?? 0;
$profit = $d['finProfitLast'];
$incomeChange = $pct($income, $d['finTwoAgo']?->total_income ?? null);
$expenseChange = $pct($expense, $d['finTwoAgo']?->total_expense ?? null);
$profitChange = $pct($profit, $d['finProfitTwoAgo'] ?: null);
@endphp
{{-- Stat Cards --}}
@foreach([
['label' => 'Total Income', 'value' => $income, 'change' => $incomeChange, 'color' => 'blue'],
['label' => 'Total Expense', 'value' => $expense, 'change' => $expenseChange, 'color' => 'orange'],
['label' => 'Profit', 'value' => $profit, 'change' => $profitChange, 'color' => $profit >= 0 ? 'green' : 'red'],
] as $card)
{{ $card['label'] }}
@php $chg = $card['change']; @endphp
{{ $pctLabel($chg) }}
@if($chg !== null) vs prev period @endif
@endforeach
{{-- Category Breakdown --}}
{{-- Income by Category --}}
Income by Category
@if(empty($d['finCategoryBreakdown']['income']))
No income transactions
@else
@foreach($d['finCategoryBreakdown']['income'] as $cat)
{{ $cat['name'] }}
Rp {{ $fmt($cat['amount']) }}
@endforeach
@endif
{{-- Expense by Category --}}
Expense by Category
@if(empty($d['finCategoryBreakdown']['expense']))
No expense transactions
@else
@foreach($d['finCategoryBreakdown']['expense'] as $cat)
{{ $cat['name'] }}
Rp {{ $fmt($cat['amount']) }}
@endforeach
@endif
@endif
{{-- Hidden data for Chart.js --}}
{{-- ════════════════════════════════════════════════════════════════
SLIDE 2 — Marketing Report (Last Month)
════════════════════════════════════════════════════════════════ --}}
{{-- Proposal / Lead Stat Cards --}}
{{-- Platform Chart --}}
@if($d['marketingByPlatform']->isEmpty())
No marketing data for {{ $lastMonthLabel }}
@else
{{-- Platform Table --}}
| Platform |
Badge Connect |
Profile Views |
Boost |
Impressions |
Clicks |
@foreach($d['marketingByPlatform'] as $row)
| {{ $row['platform'] }} |
{{ number_format($row['badge_connect']) }} |
{{ number_format($row['total_profile_view']) }} |
{{ number_format($row['boost_profile']) }} |
{{ number_format($row['total_impression']) }} |
{{ number_format($row['click']) }} |
@endforeach
@endif
{{-- ════════════════════════════════════════════════════════════════
SLIDE 3 — KPI Report (Last Month)
════════════════════════════════════════════════════════════════ --}}
@if(empty($d['kpiGroupedLast']))
No KPI objectives found for {{ $lastMonthLabel }}
@else
@foreach($d['kpiGroupedLast'] as $group)
{{ $group['group_name'] }}
@foreach($group['objectives'] as $obj)
{{ $obj['name'] }}
{{ $obj['progress'] }}%
{{ $obj['realized'] }} / {{ $obj['target'] }}
@if($obj['unit']) {{ $obj['unit'] }} @endif
@endforeach
@endforeach
@endif
{{-- ════════════════════════════════════════════════════════════════
SLIDE 4 — Talent Report (Last Month)
════════════════════════════════════════════════════════════════ --}}
@if($d['sdmRecords']->isEmpty())
No talent data for {{ $lastMonthLabel }}
@else
@foreach($d['sdmRecords'] as $sdm)
{{-- Avatar + Name --}}
{{ mb_strtoupper(mb_substr($sdm['name'], 0, 1)) }}
{{ $sdm['name'] }}
{{-- Update --}}
@if($sdm['new_update'])
Update Terbaru
{!! $sdm['new_update'] !!}
@endif
{{-- Future Target --}}
@if($sdm['future_target'])
Target Kedepan
{!! $sdm['future_target'] !!}
@endif
@endforeach
@endif
{{-- ════════════════════════════════════════════════════════════════
SLIDE 5 — Forecasting Finance (This Month)
════════════════════════════════════════════════════════════════ --}}
@if(!$d['forecasting'])
No forecasting data for {{ $thisMonthLabel }}
@else
@php $fc = $d['forecasting']; @endphp
{{-- Scenario Summary Table --}}
| Scenario |
Income |
Expense |
Profit |
Ending Balance |
@foreach([
['label' => 'Real', 'suffix' => 'real'],
['label' => 'Target', 'suffix' => 'target'],
['label' => 'Rl. Inc / Est. Exp', 'suffix' => 'real_income_estimated_expenses'],
] as $row)
| {{ $row['label'] }} |
Rp {{ $fmt($fc->{'income_total_nominal_' . $row['suffix']} ?? 0) }}
|
Rp {{ $fmt($fc->{'expense_total_nominal_' . $row['suffix']} ?? 0) }}
|
@php $p = $fc->{'estimated_profit_' . $row['suffix']} ?? 0; @endphp
Rp {{ $fmt($p) }}
|
Rp {{ $fmt($fc->{'ending_balance_' . $row['suffix']} ?? 0) }}
|
@endforeach
{{-- Scenario Chart --}}
{{-- Line Items --}}
@if($fc->estimatedIncomes->isNotEmpty())
Estimated Income Items
| Item |
Real |
Target |
@foreach($fc->estimatedIncomes as $item)
| {{ $item->description }} |
Rp {{ $fmt($item->nominal_real) }} |
Rp {{ $fmt($item->nominal_target) }} |
@endforeach
@endif
@if($fc->estimatedExpenses->isNotEmpty())
Estimated Expense Items
| Item |
Real |
Target |
@foreach($fc->estimatedExpenses as $item)
| {{ $item->description }} |
Rp {{ $fmt($item->nominal_real) }} |
Rp {{ $fmt($item->nominal_target) }} |
@endforeach
@endif
@endif
{{-- ════════════════════════════════════════════════════════════════
SLIDE 6 — Project Overview (This Month)
════════════════════════════════════════════════════════════════ --}}
@if($d['projectsData']->isEmpty())
No active projects this month
@else
{{-- Summary stat cards --}}
@foreach(['in_progress' => 'In Progress', 'pending' => 'Pending', 'in_review' => 'In Review', 'hold' => 'Hold'] as $s => $sl)
@php $count = $d['projectsData']->where('status', $s)->count(); @endphp
@endforeach
{{-- Project Table --}}
| Project |
Status |
Project Manager |
Developers |
Earning (USD) |
@foreach($d['projectsData'] as $proj)
| {{ $proj['name'] }} |
{{ $statusLabel($proj['status']) }}
|
{{ $proj['pm'] }} |
{{ $proj['developers'] ?: '-' }}
|
{{ $proj['earning_usd'] > 0 ? $fmtUsd($proj['earning_usd']) : '-' }}
|
@endforeach
| Total Earning |
{{ $fmtUsd($d['projectsData']->sum('earning_usd')) }}
|
@endif
{{-- ════════════════════════════════════════════════════════════════
SLIDE 7 — KPI Report (This Month)
════════════════════════════════════════════════════════════════ --}}
@if(empty($d['kpiGroupedThis']))
No KPI objectives found for {{ $thisMonthLabel }}
@else
@foreach($d['kpiGroupedThis'] as $group)
{{ $group['group_name'] }}
@foreach($group['objectives'] as $obj)
{{ $obj['name'] }}
{{ $obj['progress'] }}%
{{ $obj['realized'] }} / {{ $obj['target'] }}
@if($obj['unit']) {{ $obj['unit'] }} @endif
@endforeach
@endforeach
@endif