@extends('front.v2.partials.master') @section('content')
@php $itemPrice = $item->offer_price; $specialPrice = getSpecialPrice($item->store_id,$item->data_json); if($specialPrice != null){ $itemPrice = $specialPrice; } @endphp
{!! Form::open([ 'route' => 'front.v2.add-to-cart', 'method' => 'POST', 'id' => 'add_cart', 'autocomplete' => 'off', ]) !!} @if ($item->is_offer_item == 1 && count($offerRules) > 0) @php $n=1; @endphp
@foreach ($offerRules as $keys => $row) {!! Form::hidden('is_offer_item', 1) !!} {!! Form::hidden('variation_id', $row->vitem_id) !!} {!! Form::hidden('variation_master_id', $row->variation_id) !!}
@php $itemName = $row->vm_name != '' ? ' - ' . $row->vm_name : ''; @endphp
  • {{ $row->itm_name . $itemName }}

{!! $row->description !!}

@if (isset($removedIngredients[$row->itm_id]) && count($removedIngredients[$row->itm_id]) > 0) @php $j=1; @endphp

{!! __('v2/front_site.removed') !!}

@foreach ($removedIngredients[$row->itm_id] as $rKey => $remove)
@php $j++; @endphp @endforeach
@endif
@if (isset($extraIngredients[$row->itm_id]) && count($extraIngredients[$row->itm_id]) > 0) @foreach ($extraIngredients[$row->itm_id] as $detail) @endforeach
@if (count($extraIngredients) > 0)

{!! __('v2/front_site.extra') !!}

@php $l=1; @endphp @if (isset($globalExtraCategory[$row->itm_id])) @foreach ($globalExtraCategory[$row->itm_id] as $key => $extraCategories) @php $l++; @endphp @endforeach @endif
@php $k = 1; @endphp @foreach ($extraIngredients[$row->itm_id] as $extra)
@php $k++; @endphp @endforeach
@endif
@endif
@php $n++; @endphp @endforeach
{{-- Legg i handlekurv {!! numberFormat($itemPrice,false,true,0) !!} --}}
@endif {!! Form::close() !!}
@endsection