To
From
@if ($sale->payment_status == 'due')
COD :
@if (!empty($sale->currency_type))
@if ($sale->currency_type == 'usd')
@php
$total = $sale->invoice_nettotal / $setting->currency_rate;
@endphp
{{ number_format($total, 2) }} $
@else
{{ number_format($sale->invoice_nettotal, 2) }} LKR
{{-- {{ $sale->currency_type == 'usd' ? '$' : 'LKR' }} --}}
@endif
@else
LKR
@endif
@elseif ($sale->payment_status == 'partial')
Balance :
@if (!empty($sale->currency_type))
@if ($sale->currency_type == 'usd')
@php
$total = $sale->invoice_balance / $setting->currency_rate;
@endphp
{{ number_format($total, 2) }} $
@else
{!! number_format($sale->invoice_balance, 2) !!} LKR
@endif
@else
LKR
@endif
@else
FREE
@endif
{{ $sale->waybill_prefix . $sale->waybill_no . $sale->waybill_postfix }} |
@endforeach