@php $auth_format = \Session::get('company_data')['date_format'] ?? ''; @endphp @php $i=1; @endphp @if(count($data)>0) @foreach($data as $key=> $row) @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 @php $i++; @endphp @endforeach @else @endif
Sl No Date Doctor Name (Dr. Code) INV NO Patient NAME (Patient Code) Category ITEM Basic Amount Com. % Per unit Total Amount
{{ 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 }}{{ $percentage }} {{ $price }} {{ $commission }}
No Data Found