{{ 1 + $key}} |
{{ formatedDate($row['sale_invoice_details']->created_at) }} |
{{ $row['sale_invoice_details']->doctor }}
({!! $row['sale_invoice_details']->doctor_code !!})
|
{{ $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 }} |
{{ $row['sale_invoice_details']->basic_amount }} |
@php
$amount = $row['sale_invoice_details']->basic_amount ?? 0 ;
$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 ;
$commission = 0 ;
if ($type == 'quantity') {
$commission = $price;
} else if ($type == 'percentage') {
$commission = ($percentage / 100) * $price;
}
@endphp
{{ $percentage }} |
{{ $price }} |
{{ $commission }} |
@php $i++; @endphp
@endforeach
@else