@php $tab = $tab ?? request('tab', 'transaksi'); @endphp
@if($shopLogo ?? false) {{ $shopName }} @endif

{{ $shopName }}

@if($shopAddress)

{{ $shopAddress }}

@endif

RINCIAN PENDAPATAN

Periode: {{ \Carbon\Carbon::parse($startDate)->format('d M Y') }} - {{ \Carbon\Carbon::parse($endDate)->format('d M Y') }}
Mode: {{ $tab === 'produk' ? 'Per Produk' : 'Per Pembayaran' }}
Total Pendapatan
Rp {{ number_format((float) ($summary['total_revenue'] ?? 0), 0, ',', '.') }}
Pembayaran Masuk
{{ number_format((int) ($summary['total_transactions'] ?? 0), 0, ',', '.') }}
Total Qty
{{ number_format((float) ($summary['total_qty'] ?? 0), 0, ',', '.') }}
Jumlah Produk
{{ number_format((int) ($summary['total_products'] ?? 0), 0, ',', '.') }}
@if($tab === 'produk')
Pendapatan Per Produk
@forelse($byProduct as $index => $product) @php $percentage = ((float) ($summary['total_revenue'] ?? 0)) > 0 ? (((float) $product->total_revenue / (float) $summary['total_revenue']) * 100) : 0; @endphp @empty @endforelse @if(isset($byProduct) && method_exists($byProduct, 'count') && $byProduct->count() > 0) @endif
No Produk Order Qty Pendapatan %
{{ $index + 1 }} {{ $product->name }} {{ number_format($product->total_orders) }} {{ number_format($product->total_qty) }} Rp {{ number_format((float) $product->total_revenue, 0, ',', '.') }} {{ number_format($percentage, 1) }}%
Tidak ada data
TOTAL Rp {{ number_format((float) ($summary['total_revenue'] ?? 0), 0, ',', '.') }} 100%
@else
Detail Per Pembayaran
@forelse($byTransaction as $index => $row) @empty @endforelse @if(isset($byTransaction) && method_exists($byTransaction, 'count') && $byTransaction->count() > 0) @endif
No Tanggal Bayar Invoice Pelanggan Status Jenis Rekening Kasir Nominal Masuk
{{ $index + 1 }} {{ optional($row->payment_date)->format('d/m/Y H:i') ?? '-' }} {{ $row->invoice_number ?? '-' }} {{ $row->customer_name ?? '-' }} @if(!empty($row->notes))
{{ $row->notes }} @endif
{{ $row->status_label ?? '-' }} {{ $row->payment_method_label ?? '-' }} {{ $row->payment_account_label ?? '-' }} {{ $row->cashier_name ?? '-' }} Rp {{ number_format((float) ($row->amount ?? 0), 0, ',', '.') }}
Tidak ada data
TOTAL {{ number_format((int) ($summary['total_transactions'] ?? 0), 0, ',', '.') }} PEMBAYARAN MASUK Rp {{ number_format((float) ($summary['total_revenue'] ?? 0), 0, ',', '.') }}
@endif