{{$i}} |
{{$detail->routeName}}/{{$detail->destination->container}}
/{{$detail->RouteAssignment->vehicle}}/
{{$detail->RouteAssignment->trailer}}/{{$detail->destination->file_number}}
|
{{$detail->destination->quantity}} |
@if($detail->destination == $currency)
{{number_format($detail->destination->rate,2)}}
@else
@if($currency == 'USD')
@if($invoice->exchange_rate > 0)
{{$detail->destination->rate/$invoice->exchange_rate}}
@else
-ERROR-
@endif
@elseif($currency == 'TSH')
@if($invoice->exchange_rate > 0)
{{$detail->destination->rate*$invoice->exchange_rate}}
@else
-ERROR-
@endif
@endif
@endif
|
@if($detail->isTaxed == 1)
@if($detail->destination == $currency)
{{--*/ $total_tax += $detail->destination->amount*0.18 /*--}}
@else
@if($currency == 'USD')
@if($invoice->exchange_rate > 0)
{{--*/ $total_tax += ($detail->destination->amount*0.18)/$invoice->exchange_rate /*--}}
@else
{{--*/ $total_tax += 0 /*--}}
@endif
@elseif($currency == 'TSH')
@if($invoice->exchange_rate > 0)
{{--*/ $total_tax += ($detail->destination->amount*0.18)*$invoice->exchange_rate /*--}}
@else
{{--*/ $total_tax += 0 /*--}}
@endif
@endif
@endif
@else
@endif
|
@if($detail->destination->currency == $currency)
{{number_format($amount=$detail->destination->amountValue,2)}}
@else
@if($currency == 'USD')
@if($invoice->exchange_rate > 0)
{{number_format($amount=$detail->destination->amountValue/$invoice->exchange_rate,2)}}
@else
-ERROR-
@endif
@elseif($currency == 'TSH')
@if($invoice->exchange_rate > 0)
{{number_format($amount=$detail->destination->amountValue*$invoice->exchange_rate,2)}}
@else
-ERROR-
@endif
@endif
@endif
|
{{--*/ $sub_amount += $amount /*--}}
{{--*/ $i ++ /*--}}
@endforeach
@foreach($additional_amounts as $detail)