@extends('layouts.admin') @section('title', 'Dashboard - Report Admin') @section('content')
rocket_launch
PANDUAN PEMULA UMKM

Mulai hitung laba bersih toko dalam 2 langkah mudah:

1 Upload laporan settlement marketplace
2 Lihat keuntungan bersih otomatis
@if($missingHppCount > 0 || $missingHppOrdersCount > 0)
warning

Ada produk yang belum memiliki HPP

{{ $missingHppCount }} produk di database belum ada HPP @if($missingHppOrdersCount > 0) — {{ number_format($missingHppOrdersCount) }} transaksi tidak diikutkan dalam perhitungan laba @endif

edit Lengkapi HPP
@endif
calendar_month Periode: 30 hari terakhir ({{ $startDate->format('d M Y') }} - {{ $today->format('d M Y') }})
Total Omset Penjualan
payments
Rp {{ number_format($totalRevenue, 0, ',', '.') }}
{{ number_format($totalOrders) }} Pesanan Gross Revenue
Total Biaya (HPP)
receipt_long
Rp {{ number_format($totalCost, 0, ',', '.') }}
Modal Barang Shopee & TikTok
Laba Bersih Riil (Net)
account_balance_wallet
Rp {{ number_format($totalProfit, 0, ',', '.') }}
trending_up @if($totalRevenue > 0) {{ number_format($totalProfit / $totalRevenue * 100, 1) }}% Margin @else 0% Margin @endif After all fees

Revenue vs Cost vs Profit

30 hari terakhir

Platform Revenue Split

Shopee vs TikTok

Tren Revenue Harian per Toko

30 hari terakhir

@if($forecastData['has_data'])

Prediksi Penjualan

Perkiraan revenue menggunakan Simple Moving Average

7 Hari ke Depan calendar_view_week
Rp {{ number_format($forecastData['forecast_7'], 0, ',', '.') }}
14 Hari ke Depan calendar_view_month
Rp {{ number_format($forecastData['forecast_14'], 0, ',', '.') }}
30 Hari ke Depan date_range
Rp {{ number_format($forecastData['forecast_30'], 0, ',', '.') }}
Avg. Harian: Rp {{ number_format($forecastData['avg_daily_revenue'], 0, ',', '.') }}
Trend: @if($forecastData['trend'] === 'up') trending_up Naik {{ number_format($forecastData['trend_percent'], 1) }}% @elseif($forecastData['trend'] === 'down') trending_down Turun {{ number_format(abs($forecastData['trend_percent']), 1) }}% @else trending_flat Stabil {{ number_format($forecastData['trend_percent'], 1) }}% @endif
@else
analytics

Upload data transaksi terlebih dahulu untuk melihat forecast

Data minimal 1 hari diperlukan untuk prediksi

@endif @if(!empty($topProducts))

🏆 Produk dengan Nilai Penjualan Terbesar

Berdasarkan total revenue (30 hari terakhir)

@foreach($topProducts as $i => $p) @endforeach
# Produk Terjual Revenue Profit Avg Harga
{{ $i + 1 }} {{ $p['product_name'] }} {{ number_format($p['total_sold']) }} pcs Rp {{ number_format($p['total_revenue'], 0, ',', '.') }} Rp {{ number_format($p['total_profit'] ?? 0, 0, ',', '.') }} @if($p['total_sold'] > 0) Rp {{ number_format(round($p['total_revenue'] / $p['total_sold']), 0, ',', '.') }} @else - @endif
@endif
@endsection @section('scripts') @endsection