Date | INV NO | Patient Name | Category | Item | Basic Amount | Total Amount | |||
---|---|---|---|---|---|---|---|---|---|
{{ formatedDate($row['sale_invoice_details']->created_at) }} | {{ $row['sale_invoice_details']->main_invoice_no }} |
{{ $row['sale_invoice_details']->patient_name }} ({{ $row['sale_invoice_details']->patient_code }}) |
{{ $row['sale_invoice_details']->brand }} | {{ $row['sale_invoice_details']->product }} | @php $amount = $row['sale_invoice_details']->basic_amount ?? 0 ; $discount = !empty($row['sale_invoice_details']->discount_amount) ? $row['sale_invoice_details']->discount_amount : (!empty($row['sale_invoice_details']->sale_discount_amount) ? $row['sale_invoice_details']->sale_discount_amount : '0'); $amount = $amount - $discount; if (isset($row['incentive_slab_details']) && !empty($row['incentive_slab_details']->calculation_type)) { $type = isset($row['incentive_slab_details']) && isset($row['incentive_slab_details']->calculation_type) ? $row['incentive_slab_details']->calculation_type : 0 ; $percentage = isset($row['incentive_slab_details']) && isset($row['incentive_slab_details']->percentage) ? $row['incentive_slab_details']->percentage : 0 ; $price = isset($row['incentive_slab_details']) && isset($row['incentive_slab_details']->price) ? $row['incentive_slab_details']->price : 0 ; } else if (!empty($incentive_slab) && !empty($incentive_slab->calculation_type)) { $type = $incentive_slab->calculation_type ?? '' ; $percentage = $incentive_slab->percentage ?? 0 ; $price = $incentive_slab->price ?? 0 ; } $commission = 0 ; if ($type == 'quantity') { $commission = $price; } else if ($type == 'percentage') { $commission = ($percentage / 100) * $amount; } @endphp{{ $amount }} | {{ $commission }} | |||
No Data Found |