@extends('front.v2.partials.master') @section('content') {!! 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; $categoryIds = array_column($offerRules->toArray(),'category_id'); $sameCategory = (count(array_unique($categoryIds, SORT_REGULAR)) === 1); @endphp @foreach ($offerRules as $keys => $row) @php $selectText = $row->name; if((int)$row->variation_id > 0){ $selectText .=" - ".$row->vm_name; } $productImage = 'assets/images/pizza'. ($keys+1).'.png'; if(isset($row->offer_image) && $row->offer_image != ''){ $productImage = $row->offer_image; } @endphp @php $itemName = $row->vm_name != '' ? ' - ' . $row->vm_name : ''; $num = ($n == 1) ? __('v2/front_site.first') :__('v2/front_site.second'); @endphp @if($sameCategory) {!! __('v2/front_site.select_same',['num'=>$num,'text'=>$selectText]) !!} @else {!! __('v2/front_site.select_item_deal',['text'=>$selectText]) !!} @endif {!! __('v2/front_site.select') !!} @php $n++; @endphp @endforeach {{-- Legg i handlekurv {!! numberFormat($itemPrice,false,true,0) !!} --}} {!! __('v2/front_site.add_to_cart') !!} {!! numberFormat($item->offer_price, false, true, 0) !!} {!! Form::hidden('is_offer_item', 1) !!} @endif {!! Form::close() !!}
@if($sameCategory) {!! __('v2/front_site.select_same',['num'=>$num,'text'=>$selectText]) !!} @else {!! __('v2/front_site.select_item_deal',['text'=>$selectText]) !!} @endif
{!! $items->name !!}
{!! ($items->offer_price_comma) !!}