@extends('layout.erp.app') @section('title', 'Show Purchase') @section('page')
| SL | Product | Qty | Price | Discount | Subtotal |
|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ optional($purchasedetail->products)->name }} | {{ $purchasedetail->qty }} | {{ number_format($purchasedetail->price, 2) }} | {{ number_format($purchasedetail->discount, 2) }} | {{ number_format($subtotal, 2) }} |
| Total | {{ number_format($total, 2) }} | ||||
| Tax (5%) | {{ number_format($tax, 2) }} | ||||
| Total Discount | {{ number_format($total_discount, 2) }} | ||||
| Grand Total | {{ number_format($grandTotal, 2) }} | ||||