@extends('layouts.admin') @section('title', 'Laporan - Report Admin') @php $totalRevenue = $summaries->sum('total_revenue'); $totalCost = $summaries->sum('total_cost'); $totalProfit = $summaries->sum('total_profit'); $totalOrders = $summaries->sum('total_orders'); @endphp @section('content')
Ringkasan keuntungan per platform per bulan
Total Orders ({{ $year }})
{{ number_format($totalOrders) }}
Total Revenue
Rp {{ number_format($totalRevenue, 0, ',', '.') }}
Total Cost
Rp {{ number_format($totalCost, 0, ',', '.') }}
Total Profit
Rp {{ number_format($totalProfit, 0, ',', '.') }}
| Periode | Toko | Platform | Total Orders | Products Sold | Total Revenue | Total Cost | Total Profit | Avg Order |
|---|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::createFromFormat('Y-m', $summary->year_month)->format('M Y') }} | @if($summary->store) {{ $summary->store->name }} @else - @endif | @if($summary->platform == 'shopee') Shopee @elseif($summary->platform == 'tiktok') TikTok @else {{ $summary->platform }} @endif | {{ number_format($summary->total_orders) }} | {{ number_format($summary->total_products_sold) }} | Rp {{ number_format($summary->total_revenue, 0, ',', '.') }} | Rp {{ number_format($summary->total_cost, 0, ',', '.') }} | Rp {{ number_format($summary->total_profit, 0, ',', '.') }} | @if($summary->total_orders > 0) Rp {{ number_format($summary->total_revenue / $summary->total_orders, 0, ',', '.') }} @else - @endif |
|
bar_chart
Belum ada data laporan untuk tahun {{ $year }} |
||||||||
| TOTAL {{ $year }} | {{ number_format($totalOrders) }} | Rp {{ number_format($totalRevenue, 0, ',', '.') }} | Rp {{ number_format($totalCost, 0, ',', '.') }} | Rp {{ number_format($totalProfit, 0, ',', '.') }} | ||||