{!! $key + 1 !!} |
{!! $value->product_name ?? '' !!} |
{!! $value->consultant_name ?? '' !!} |
{!! $value->invoice_batch_no ?? '' !!} |
@if($voucher_type && $voucher_type->tax_applicable == '1')
{!! $value->hsncode ?? '' !!} |
@endif
{!! isset($value->batch_date) && $value->batch_date != '' ?
date('d-m', strtotime($value->batch_date)) . ', ' . date('h:i A', strtotime($value->batch_date)) : '' !!}
|
{!! isset($mrp)? convertDecimelPoint($mrp): '' !!}
|
{!! isset($value->main_qty) ? convertDecimelPoint($value->main_qty) : '' !!}
|
{!! $value->primary_unit_code ?? '' !!}
|
{!! isset($value->price)? convertDecimelPoint($value->price): '' !!}
|
@if($discount>0)
{!! $value->discount_percentage ?? '' !!} |
{!! isset($value->discount_amount) ? convertDecimelPoint($value->discount_amount) : '' !!} |
@endif
@php
$gst =
$value->getProduct->getTaxMaster->total_percentage ?? 0;
$gst_amount = taxAmountCalculate($gst,$totalValueAmount);
$total_gst_amount += $gst_amount;
@endphp
@if($voucher_type && $voucher_type->tax_applicable == '1')
{!! convertDecimelPoint($totalValueAmount-$value->discount_amount) !!} |
@php
if (
isset(
$value->getProduct
->getTaxMaster
->getTaxMasterSub,
)
) {
foreach ($value->getProduct->getTaxMaster->getTaxMasterSub as $tax) {
if ($tax->name == 'IGST') {
$IGST = $tax->percentage ??0;
$IgstAmount = taxAmountCalculate($tax->percentage,$totalValueAmount);
$totalIgstAmount+=$IgstAmount;
} elseif (
$tax->name == 'CGST'
) {
$CGST = $tax->percentage ??0;
$CgstAmount = taxAmountCalculate($tax->percentage,$totalValueAmount);
$totalCgstAmount+=$CgstAmount;
} elseif (
$tax->name == 'SGST'
) {
$SGST = $tax->percentage ?? 0;
$SgstAmount = taxAmountCalculate($tax->percentage,$totalValueAmount);
$totalSgstAmount+=$SgstAmount;
}elseif($tax->name == 'CESS')
{
$CESS = $tax->percentage ??0;
$CessAmount = taxAmountCalculate($tax->percentage,$totalValueAmount);
$totalCessAmount+=$CessAmount;
}
}
}
@endphp
@if($patientState == $comapnyState)
{!! $CGST !!} |
{!! $CgstAmount?convertDecimelPoint($CgstAmount):0.00 !!} |
{!! $SGST !!} |
{!! $SgstAmount?convertDecimelPoint($SgstAmount):0.00 !!} |
@else
{!! $IGST !!} |
{!! $IgstAmount?convertDecimelPoint($IgstAmount):0.00 !!} |
@endif
{!! $CESS !!} |
{!! $CessAmount?convertDecimelPoint($CessAmount):0.00 !!} |
@endif
{!! convertDecimelPoint($totalValueAmount + $gst_amount - $value->discount_amount) ?? '' !!}
@php $newAmount = $totalValueAmount + $gst_amount - $value->discount_amount;
$totalAmount+=$newAmount;
@endphp
|
@endforeach
|
@if($voucher_type && $voucher_type->tax_applicable == '1')
|
@endif
TOTAL |
@if(request()->segment(1)!='pathology-invoice')
|
@endif
{{-- {!! $totalMrp?convertDecimelPoint($totalMrp):'' !!} --}} |
{!! $totalQnt?convertDecimelPoint($totalQnt):'' !!} |
|
|
@if($discount>0)
|
{!! $totalDiscountAmount?convertDecimelPoint($totalDiscountAmount):'' !!} |
@endif
@if($voucher_type && $voucher_type->tax_applicable == '1')
@if($patientState == $comapnyState)
{!! $total_gst_amount?convertDecimelPoint($total_gst_amount):'' !!} |
|
{!! $totalCgstAmount?convertDecimelPoint($totalCgstAmount):0.00 !!} |
|
@else
{!! $totalSgstAmount?convertDecimelPoint($totalSgstAmount):0.00 !!} |
|
@endif
{!! $totalIgstAmount?convertDecimelPoint($totalIgstAmount):0.00 !!} |
|
{!! $totalCessAmount?convertDecimelPoint($totalCessAmount):0.00 !!} |
@endif
{!! $totalAmount?convertDecimelPoint($totalAmount):0.00 !!} |
@php
$total_bill += $totalAmount;
$total_sum_gst_amount += $total_gst_amount;
$total_discountAmount += $totalDiscountAmount;
@endphp
@endforeach
@endforeach
@php
$total_billing_amount = $total_bill;
$total_received_amount = $total_received_amount->total_amount;
@endphp