@extends('admin.layout.master') @section('title','COSTING SHEET') @section('custom_style') @endsection @section ('content')

{{__('obs.costing')}} {{__('obs.sheet')}}

 
{{--
--}}
{{-- end --}}
{{-- size --}} {{-- --}} {{-- rate --}} {{-- costing --}} {{-- Profit --}} @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) @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 @php $invoice_charge=($quotation->invoice_charge/$roe); @endphp
{{__('obs.customer')}} : {{$quotation->party->name_eng}} || {{__('obs.order')}} {{__('obs.no')}} : {{$quotation->quotation_no}} || {{__('obs.currency')}} : {{$quotation->currency->name}}
# {{__('obs.product')}} {{__('obs.packing')}} {{__('obs.size')}} {{__('obs.f.')}} {{__('obs.rate')}} {{__('obs.costing')}} {{__('obs.comm')}}
({{__('obs.ctn')}})
{{__('obs.fob')}} {{__('obs.cbm')}} {{__('obs.qty')}} {{__('obs.t.')}} {{__('obs.cbm')}} {{__('obs.offer')}} {{__('obs.profit')}} {{__('obs.t.')}} {{__('obs.fob')}} {{__('obs.gp')}}
{{__('obs.carton')}} {{__('obs.piece')}}{{__('obs.pcs')}} {{__('obs.carton')}}{{__('obs.o.')}} {{__('obs.cost')}} {{__('obs.comm.')}} {{__('obs.(%)')}}{{__('obs.carton')}} {{__('obs.total')}}
{{++$i}}
{{$item->product->name_eng}}
{{$item->unit_size}} {{ number_format($unit_price,2) }} {{ number_format($ctn_price,2) }} {{ number_format($other_cost,2) }} {{ number_format(($item->commission_rate*100),2) }} {{ number_format($commission_total,2)}}
$
{{ number_format($fob,2)}}
{{ number_format($item->cbm_unit,2)}} {{ number_format($item->qty,2)}} {{ number_format($tcbm,2)}}
$
{{ number_format($offer_fob_unit,2)}}
$
{{ number_format($profit_unit,2)}}
$
{{ number_format($profit_total,2)}}
$
{{ number_format($total_fob_offer,2)}}
{{ number_format((($profit_total/$total_fob_offer)*100),2)}}
{{$quotation->status==1?'':'DRAFT'}}{{__('obs.total')}} {{ number_format($total_qty,2)}} {{ number_format($total_tcbm,2)}} {{ number_format($total_gprofit,2)}} {{ number_format($total_fob_offer_g,2)}} {{ number_format((($total_gprofit/$total_fob_offer_g)*100),2)}}
{{__('obs.add,')}} {{__('obs.other')}} {{__('obs.charge')}}{{number_format($invoice_charge,2)}}
{{__('obs.net')}} {{__('obs.amount')}}{{number_format(($total_fob_offer_g+$invoice_charge),2)}}

@endsection