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

Obat {{ optional($detail->drug)->name ?? '-' }}
Satuan {{ $detail->unit ?? '-' }}
Jumlah Obat {{ $detail->quantity ?? '-' }}
Tanggal Kadaluarsa {{ optional($detail->expire_date)->format('d/m/Y') ?? '-' }}
Nomor Batch {{ $detail->batch_number ?? '-' }}
Harga Beli Satuan {{ money_format_idr($detail->unit_price) ?? '-' }}
Total Harga {{ money_format_idr($detail->total_price) ?? '-' }}
Potongan Harga {{ money_format_idr($detail->discount) ?? '-' }}
Total {{ money_format_idr($detail->total) ?? '-' }}
Jumlah {{ $detail->is_package ? 'Paket' : '' }} {{ $detail->is_package ? $detail->amount_package : $detail->amount }}
PPN {{ $detail->ppn ?? '-' }}%
Keuntungan {{ $detail->profit ?? '-' }}%
Harga/Item {{ money_format_idr($detail->price) ?? '-' }}
@endforeach