@if($loop->parent->iteration == 1 && $loop->iteration == 1)
{{ $price['design_id'] }}
{{ $price['customer_ref'] }}
{{ ucwords($price['description']) }}
|
@endif
@if($loop->first)
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{ $price['style_version_name'] }}
{{ $price['factory'] }}
@endif
|
@endif
@if($loop->first)
|
@endif
@if($loop->first)
@foreach(explode(',', $price['yarns']) ?? [] as $yarn)
{{$yarn}}
@endforeach
|
@endif
@if(Gate::allows('price:update') && !$price['season_locked'])
{{-- @can('admin')
{{$price['id']}}
@endcan --}}
@else
{{$price['price_name']}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$this->sizes->where('id', $price['sizes_id'])->first()?->name}}
{{$price['colourway_name'] ?? ""}}
{{$price['colour_type'] ?? ""}}
@endif
|
@if($price['model'] == 'manual' && Gate::allows('price:update') && !$price['season_locked'])
@else
€{{number_format($price['yarn_cost_kg_eur'],2)}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['yarn_trans_currency'] ?? ""}}{{$price['yarn_trans'] ?? ""}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['weight']}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['costed_weight']}}
@endif
|
€{{calculateYarnValueEur($price)}}
|
@if(Gate::allows('price:update') && !$price['season_locked'])
{{$price['fact_currency']}}
@else
{{$price['fact_currency']}}{{$price['cmt']}} - {{$price['cmt_status']}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['valid_until']}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['aoc'] ?? ""}}%
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['accessory_currency'] ?? ""}}{{$price['accessory'] ?? ""}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['label_currency'] ?? ""}}{{$price['label'] ?? ""}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['gmt_trans_currency'] ?? ""}}{{$price['gmt_trans'] ?? ""}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
£
@else
£{{$price['testing'] ?? ""}}
@endif
|
{{--
@if(Gate::allows('price:update') && !$price['season_locked'])
£
@else
£{{$price['testing_courier'] ?? ""}}
@endif
| --}}
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['embroidery_currency'] ?? ""}}{{$price['embroidery'] ?? "0.00"}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
£{{$price['duty'] ?? ""}}
@endif
|
£{{calculateCustoms($price)}}
|
{{$price['fact_currency']}}{{calculateFactoring($price)}}
|
{{$price['fact_currency']}}{{calculateSubtotal($price)}}
£{{calculateSubtotalGBP($price)}}
|
@if(Gate::allows('price:update') && !$price['season_locked'])
{{$price['cust_currency']}}
@else
{{$price['cust_currency'] ?? ""}}{{$price['quote'] ?? "0.00"}} Margin: {{calculateMargin($price)}}%
@endif
|
@foreach(json_decode($price['quotes_sent']) ?? [] as $quote)
{{date_format(date_create($quote->date_sent), 'd-M')}} - {{$price['cust_currency']}}{{$quote->quote}}
@endforeach
|
@if(Gate::allows('price:update') && !$price['season_locked'])
{{$price['cust_currency']}}
@else
{{$price['cust_currency'] ?? ""}}{{$price['target'] ?? "0.00"}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['min_qty'] ?? ""}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['notes'] ?? ""}}
@endif
|
@if(Gate::allows('price:update') && !$price['season_locked'])
@else
{{$price['customer_notes'] ?? ""}}
@endif
|
|
{{$price['last_updated_by']}}
|