@section('title', $isInsightPage ? 'Insight Bisnis' : 'Dashboard')

{{ $isInsightPage ? 'Insight Bisnis' : 'Dashboard' }}

@if($isInsightPage) @endif
@if(!$isInsightPage)
Total PO Bulan Ini
{{ $totalPo }}
Total Pengiriman
{{ $totalDelivery }}
Total Invoice
IDR {{ number_format($totalRevenue/1000000, 1, ',', '.') }}M
Outstanding Order
{{ $outstandingPo }}
Jumlah PO per Bulan
Customer Terbanyak
Total PO
{{ $totalPo }}
Total Amount
{{ number_format($totalRevenue/1000, 0, ',', '.') }}K
Total Bring order
{{ $outstandingPo }}
Monitoring
1
Outstanding (In Process)
{{ $monitoring['diproses'] }}
2
On Delivery
{{ $monitoring['dikirim'] }}
3
Invoiced / Completed
{{ $monitoring['ditagih'] }}
Insight
@if($insight)

{{ $insight }}

@else

Pilih bulan tertentu untuk melihat analisis perbandingan volume PO.

@endif @if($topCustomers->isNotEmpty())
Customer Terbanyak Bulan Ini:
{{ $topCustomers->first()->customer_name }}
@endif
@else
{{ $allInsights->count() }} Insights
@forelse($allInsights as $item)
@if($item['type'] == 'penurunan') @elseif($item['type'] == 'peningkatan') @else @endif
{{ $item['title'] }}
Solusi Strategis
    @foreach($item['solutions'] as $sol)
  • {{ $sol }}
  • @endforeach
@empty

Tidak ada insight strategis untuk periode ini.

Coba ubah filter atau pilih bulan lain untuk melihat analisis baru.

@endforelse
@endif @if(!$isInsightPage) @endif