@php $logoPath = public_path('logo/logo-umi.png'); $logoExists = file_exists($logoPath); @endphp
@if($logoExists) @endif UMI CELL

Jl. Raya Semarang-Boja, Jatisari, Kec. Mijen, Kota Semarang Jawa Tengah 50275

Telp: 0882005564342

LAPORAN LABA RUGI Per PRODUK

Periode: {{date('d M Y', strtotime($startDate))}} - {{date('d M Y', strtotime($endDate))}}
@if($branch) Cabang: {{$branch->name}} @else Cabang: Semua Cabang @endif

@php $totalJualAll = 0; $hargaPokokAll = 0; $potonganAll = 0; $labaKotorAll = 0; $counter = 1; @endphp @foreach($productDetails as $detail) @php $totalJualAll += $detail->total_jual; $hargaPokokAll += $detail->harga_pokok; $potonganAll += $detail->potongan; $labaKotorAll += $detail->laba_kotor; @endphp @endforeach
Nota Nama Item Total Jual Harga Pokok Potongan Laba
Laba Kotor Laba %
{{ $counter++ }} {{ $detail->product->name ?? 'N/A' }} @if($detail->product->brand) - {{ $detail->product->brand->name }} @endif {{ number_format($detail->total_jual, 0, ',', '.') }} {{ number_format($detail->harga_pokok, 0, ',', '.') }} {{ number_format($detail->potongan, 0, ',', '.') }} {{ number_format($detail->laba_kotor, 0, ',', '.') }} {{ number_format($detail->laba_persen, 2) }}
Sub Total {{ number_format($detail->total_jual, 0, ',', '.') }} {{ number_format($detail->harga_pokok, 0, ',', '.') }} {{ number_format($detail->potongan, 0, ',', '.') }} {{ number_format($detail->laba_kotor, 0, ',', '.') }}
TOTAL {{ number_format($totalJualAll, 0, ',', '.') }} {{ number_format($hargaPokokAll, 0, ',', '.') }} {{ number_format($potonganAll, 0, ',', '.') }} {{ number_format($labaKotorAll, 0, ',', '.') }}

Dicetak pada: {{date('d M Y H:i')}}