@if($shopLogo ?? false) {{ $shopName }} @endif

{{ $shopName }}

@if($shopAddress)

{{ $shopAddress }}

@endif

LAPORAN PENDAPATAN BERSIH

Periode: {{ \Carbon\Carbon::parse($startDate)->format('d M Y') }} - {{ \Carbon\Carbon::parse($endDate)->format('d M Y') }}
Total Pendapatan
Rp {{ number_format($summary['revenue'], 0, ',', '.') }}
Total HPP (Modal)
Rp {{ number_format($summary['cogs'], 0, ',', '.') }}
Total Biaya Klik
Rp {{ number_format($summary['click_cost'] ?? 0, 0, ',', '.') }}
Total Pengeluaran
Rp {{ number_format($summary['expenses'], 0, ',', '.') }}
Laba Bersih
Rp {{ number_format($summary['net_income'], 0, ',', '.') }}
Rincian HPP (Modal Bahan)
@forelse($cogsDetails as $detail) @empty @endforelse
Nama Bahan Total Pemakaian Harga Rata-rata Total Biaya
{{ $detail['name'] }} {{ number_format($detail['total_usage'], 2, ',', '.') }} Rp {{ number_format($detail['avg_price'], 2, ',', '.') }} Rp {{ number_format($detail['total_cost'], 0, ',', '.') }}
Tidak ada penggunaan bahan pada periode ini
TOTAL HPP Rp {{ number_format($summary['cogs'], 0, ',', '.') }}