@foreach($style as $v=>$version) @foreach($version as $p=>$price) @if(Gate::allows('price:update') && !$price['season_locked'])
@else {{$price['price_name']}} @endif {{$price['factory']}} {{ ucwords($price['design_id']) }} {{ ucwords($price['description']) }} @foreach(explode(',', $price['yarn']) ?? [] as $yarn) {{$yarn}}
@endforeach @if(Gate::allows('price:update') && !$price['season_locked']) @else {{$price['min_qty'] ?? ""}} @endif @if(Gate::allows('price:update') && !$price['season_locked'])
{{$price['fact_currency']}}
@else {{$price['fact_currency']}}{{$price['cmt']}} - {{$price['cmt_status']}} @endif {{$price['fact_currency']}}{{calculateFactoring($price)}} {{$price['fact_currency']}}{{calculateSubtotal($price)}} @if(Gate::allows('price:update') && !$price['season_locked'])
{{$price['cust_currency']}}
@else {{$price['cust_currency'] ?? ""}}{{$price['quote'] ?? "0.00"}} @endif {{$price['cust_currency'] ?? ""}}{{discountPrice($price)}} {{calculateMargin($price)}}% {{$price['last_updated_by']}} @endforeach @endforeach