@php
$total_qty=0;
$total_tcbm=0;
$total_gprofit=0;
$total_fob_offer_g=0;
$i=0;
$roe=$quotation->roe;
@endphp
@forelse ($quotation->details as $k=>$item)
| {{++$i}} |
@php
$unit_price=($item->unit_price);
$ctn_price=($item->unit_size*$unit_price);
$other_cost=($item->other_cost);
$commission_total=($item->commission_rate*$ctn_price);
$fob=((($ctn_price+$other_cost)-$commission_total)/$roe);
$tcbm=($item->cbm_unit*$item->qty);
$offer_fob_unit=($item->offer_fob_unit);
$profit_unit=($offer_fob_unit-$fob);
$profit_total=($profit_unit*$item->qty);
$total_fob_offer=($offer_fob_unit*$item->qty);
@endphp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@php
$total_qty+=$item->qty;
$total_tcbm+=$tcbm;
$total_gprofit+=$profit_total;
$total_fob_offer_g+=$total_fob_offer;
@endphp
@empty
@endforelse