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

COSTING 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
Customer : {{$quotation->party->name_eng}} || Order NO : {{$quotation->quotation_no}} || Currency : {{$quotation->currency->name}}
# PRODUCT Packing Size F. Rate Costing Comm
(CTN)
FOB CBM QTY T.CBM OFFER Profit T.FOB GP
carton piecePCS CartonO. Cost Comm.(%)Carton 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'}}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)}}
Add, Other Charge{{number_format($invoice_charge,2)}}
Net Amount{{number_format(($total_fob_offer_g+$invoice_charge),2)}}

@endsection