@extends('layouts.app') @section('title', 'Laporan Pembelian') @section('page-title', 'Laporan Pembelian') @section('content')
🖨️ Cetak PDF ← Kembali
{{-- Total --}}
Total Nilai Pembelian ({{ \Carbon\Carbon::parse($from)->format('d M') }} – {{ \Carbon\Carbon::parse($to)->format('d M Y') }})
Rp {{ number_format($total, 0, ',', '.') }}
Rincian Pembelian
{{ $data->count() }} transaksi
@forelse($data as $i => $p) @empty @endforelse @if($data->isNotEmpty()) @endif
# 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 Rp {{ number_format($total, 0, ',', '.') }}
@endsection