POLJAM TECH
Jl. Contoh No. 123, Kota Contoh, Provinsi Contoh
Telp: (021) 1234-5678 | Email: info@poljamtech.com
BUKTI PEMBELIAN
Kode Pembelian:
{{ $purchase->purchase_code }}
Tanggal Pembelian:
{{ \Carbon\Carbon::parse($purchase->purchase_date)->format('d F Y') }}
Supplier:
{{ $purchase->supplier_name ?? 'Tidak disebutkan' }}
Tipe Pembelian:
{{ $purchase->purchase_type === 'material' ? 'Material' : 'Sparepart' }}
@foreach ($purchase->items as $item) @php $itemData = null; if ($item->item_type === 'material' && $item->item_id) { $itemData = \App\Models\Material::find($item->item_id); } elseif ($item->item_type === 'sparepart' && $item->item_id) { $itemData = \App\Models\Sparepart::find($item->item_id); } @endphp @endforeach
No Nama Item Unit Qty Harga Satuan Total
{{ $loop->iteration }} {{ $item->item_name }}
{{ ucfirst($item->item_type) }} @if ($itemData)
@if ($item->item_type === 'material') Kode: {{ $itemData->material_code ?? '-' }} @if($itemData->category) | Kategori: {{ $itemData->category }} @endif @else Kode: {{ $itemData->part_code ?? '-' }} @if($itemData->brand) | Brand: {{ $itemData->brand }} @endif @endif @endif
{{ $item->unit ?? '-' }} {{ number_format($item->quantity, 0, ',', '.') }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}
TOTAL PEMBELIAN: Rp {{ number_format($purchase->total_amount, 0, ',', '.') }}
@if ($purchase->notes)
Catatan Pembelian:
{{ $purchase->notes }}
@endif