@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 --}}
Total Transaksi
{{ $data->count() }}
Total Item
{{ number_format($data->sum('qty')) }}
Total Nilai Pembelian
Rp {{ number_format($total, 0, ',', '.') }}
{{-- Tabel Rincian --}}
Rincian Transaksi Pembelian
@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 PEMBELIAN Rp {{ number_format($total, 0, ',', '.') }}
{{-- Area Tanda Tangan --}}
Mengetahui,
( _________________________ )
@endsection