|
@if($item->invoiced==0)
@endif
|
@if($item->variation==1) @endif {{ $item->code }} |
{{ substr($item->description, 0, 30).'...' }}
invoiced==1) readonly @endif class="form-control table-field form-control-sm" type="text" value="{{ $item->description }}" name="description[]">
|
{{ $item->uom }}
@if($item->invoiced==1)
@else
@endif
|
{{ $item->quantity }}
invoiced==1) readonly @endif class="form-control quantity table-field form-control-sm" type="number" value="{{ $item->quantity }}" name="quantity[]">
|
£{{ number_format(round($item->plant, 2)*$item->quantity, 2) }}
|
£{{ number_format(round($item->labour, 2)*$item->quantity, 2) }}
|
£{{ number_format(round($item->material, 2)*$item->quantity, 2) }}
|
£{{ number_format(round($item->sales_price, 2)) }}
|
@php
$sales_net = $item->quantity*(round($item->sales_price, 2));
@endphp
£{{ number_format($sales_net, 2) }}
|
@php
$vat = $sales_net * (20 / 100);
$total_vat += $vat;
@endphp
£{{ number_format($vat, 2) }}
|
@php $gross = $vat+$sales_net; @endphp
£{{ number_format($gross, 2) }}
|
£{{ number_format($item->estimated_price, 2) }}
|
{{ $item->supplier }}
|
|
@if($item->purchased==1)
PO-{{str_pad($item->purchase_order_id, 4, '0', STR_PAD_LEFT);}}
@endif
|
@if($item->invoiced==1)
@if($item->credit_note==0)
WGI-{{str_pad($item->invoice_id, 4, '0', STR_PAD_LEFT);}}
@else
WGC-{{str_pad($item->invoice_id, 4, '0', STR_PAD_LEFT);}}
@endif
@endif
|
@if($item->invoiced != 1 && $item->purchased != 1 && $item->sub_contract_accepted != 1)
@endif
|
@php
$estimated_price += $item->estimated_price;
//$sales_price += $gross;
$plant += $item->plant*$item->quantity;
$labour += $item->labour*$item->quantity;
$material += $item->material*$item->quantity;
@endphp
@endforeach