{{$loop->iteration}} |
{{@$val->reference_number}} |
{{@$val->customer->name}} |
{{strlen(@$val->customer->address) > 20 ? substr(@$val->customer->address, 0, 15) . '...' : @$val->customer->address}} |
{{@$val->customer->contact}} |
{{number_format($val->grand_total, 2) .' '.currency($val->currency_id)->code}} |
{{number_format(Fun::adminPayBySaleID($val->id),2).' '.currency($val->currency_id)->code}} |
{!! Fun::showDeliveryFee($val->delivery_fee,$val->delivery_fee_status) !!} |
{{number_format(Fun::driverGetCodBySaleID($val->id),2).' '.currency($val->currency_id)->code}} |
@php
if((currency($val->currency_id)->code) == "$"){
$total_usd += Fun::driverGetCodBySaleID($val->id);
}elseif ((currency($val->currency_id)->code) == "៛") {
$total_kh += Fun::driverGetCodBySaleID($val->id);
}
@endphp
@endforeach
@endif