Detail Pembelian BHP Detail Pembelian BHP Apotik
Tanggal Transaksi {{ optional($consumable->date)->format('d/m/Y') }}
Tanggal Jatuh Tempo {{ optional($consumable->due_date)->format('d/m/Y') }}
Nomor Faktur {{ $consumable->invoice_number }}
Total Beli {{ money_format_idr($consumable->total_buy) }}
Jenis Penerimaan {{ $consumable->reception_type }}
Potongan Harga {{ money_format_idr($consumable->discount) }}
Distributor {{ optional($consumable->distributor)->name }}
PPN {{ $consumable->ppn }}%
Jenis Transaksi {{ $consumable->transaction_type }}
Materai {{ money_format_idr($consumable->stamp) }}
Sales {{ $consumable->sales }}
Total Bayar {{ money_format_idr($consumable->total_pay) }}
Catatan {{ $consumable->note ?? '-' }}
@foreach ($consumable->consumableBuyDetails as $detail)

BHP {{ optional($detail->consumable)->name ?? '-' }}
Satuan {{ $detail->unit ?? '-' }}
Harga Beli Satuan {{ money_format_idr($detail->unit_price) ?? '-' }}
Total Harga {{ money_format_idr($detail->total_price) ?? '-' }}
Potongan Harga {{ money_format_idr($detail->discount) ?? '-' }}
Harga/Item {{ money_format_idr($detail->price) ?? '-' }}
Total {{ money_format_idr($detail->total) ?? '-' }}
Jumlah {{ $detail->is_package ? 'Paket' : '' }} {{ $detail->is_package ? $detail->amount_package : $detail->amount }}
@endforeach