@extends('layouts.app') @section('title', 'Laporan Pembelian') @section('page_title', 'Laporan Pembelian') @section('content')
@if (session('error')) @endif
{{-- {{ url('laporan/pembelian/detail') }}/${jenis}/${pembelianId} --}} PDF

{{ $judul }}

@if($items->isEmpty())

Tidak ada data pembelian untuk periode ini.

@else
@foreach ($items as $item) @endforeach
No Tanggal Nomor Invoice Pemasok Total Harga Aksi
{{ $loop->iteration }} {{ \Carbon\Carbon::parse($item->tanggal_pembelian)->translatedFormat('d F Y') }} {{ $item->nomor_faktur ?? '-' }} {{ $item->nama_pemasok }} Rp {{ number_format($item->total_harga, 0, ',', '.') }}
Total {{ $judul }} Rp {{ number_format($items->sum('total_harga'), 0, ',', '.') }}
@endif
@endsection @push('scripts') @endpush