{{-- @php $other_name = "Other";
@endphp
Payment Mode:
@if(!empty($order->paymentMethod))
@php $other_name = "Other";
$cash_amount = $other_amount = 0;
@endphp
@foreach($order->paymentMethod as $payment_method)
@if($payment_method->paymentMethodName->title == "Cash" || $payment_method->paymentMethodName->title == "cash")
@php $cash_amount+= $payment_method->amount; @endphp
@else
@php $other_name = $payment_method->paymentMethodName->title; $other_amount+= $payment_method->amount; @endphp
@endif
@endforeach
@if($cash_amount > 0)
Cash: {{ number_format(($total-$discount_amt),$decimal_point) }}
@endif
@if($other_amount > 0)
{{ $other_name }}: {{ number_format($total,$decimal_point) }}
@endif
@else
Cash: 0.0000
@endif --}}
Total:
{{ number_format(($total - $discount_amt) + $tax_amt,$decimal_point) }}