@extends('layouts.print') @section('title', 'Cetak Laporan Pembelian') @section('doc-title', 'Laporan Pembelian') @section('doc-subtitle', 'Periode: ' . \Carbon\Carbon::parse($from)->locale('id')->isoFormat('D MMMM Y') . ' – ' . \Carbon\Carbon::parse($to)->locale('id')->isoFormat('D MMMM Y') ) @section('content') {{-- Summary Cards --}}
| # | Tanggal | Supplier | Barang | Qty | Harga/Satuan | Total |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $p->tanggal->format('d M Y') }} | {{ $p->supplier->name ?? '-' }} | {{ $p->barang->name ?? '-' }} | {{ $p->qty }} {{ $p->barang->satuan ?? '' }} | Rp {{ number_format($p->harga_satuan, 0, ',', '.') }} | Rp {{ number_format($p->total_harga, 0, ',', '.') }} |
| Tidak ada data pembelian pada periode ini. | ||||||
| TOTAL PEMBELIAN | Rp {{ number_format($total, 0, ',', '.') }} | |||||