{{--
bigpizza
--}}
{!! Form::hidden('is_offer_item', 1) !!} {!! Form::hidden('item_id', $item->id) !!}
@if(count($offerRules) >0) @php $totalExtraPrice=$extraIds=$itemPrice=0; $itemsCount=count($offerRules); if($itemsCount==1){ $divClass="col-md-12"; }elseif ($itemsCount==2) { $divClass="col-md-6"; }else { $divClass="col-md-4"; } $itemPrice=$item->offer_price; @endphp @if($item->offer_type==2) @php $maxSelectExtra= $minSelectExtra =$addedExtra=""; @endphp @foreach ($offerRules as $key=> $row)
@php $itemName=($row->vm_name!="")?" - ".$row->vm_name:""; @endphp

{{ $row->itm_name .$itemName }}

bigpizza
@if($row->vitem_id) @endif @php $extraIds=[]; @endphp @if(isset($extraIngredients[$row->itm_id]) && count($extraIngredients[$row->itm_id]) > 0) @php $extraCount = count($extraIngredients[$row->itm_id]); @endphp @foreach($extraIngredients[$row->itm_id] as $detail) @php $groupName = $detail['group_name']; $maxSelectExtra = $detail['max_select']; $minSelectExtra = $detail['min_select']; @endphp @if($detail['is_default'] == 1) @php // $extraIds .= $detail['id'].','; array_push($extraIds,$detail['id']); $addedExtra .= '+'.trim($detail['name']).', '; $totalExtraPrice += $detail['price']; @endphp @endif @endforeach

{{ rtrim($addedExtra , ', ') }}

{{-- means design with image extra items --}}
{{ $groupName }}
@foreach($extraIngredients[$row->itm_id] as $detail)

s1

{{ $detail['name'] }}

{{ numberFormat($detail['price']) }} @if($detail['is_default'] == 0) @else @endif

@endforeach
@endif
@endforeach @else
@foreach ($offerRules as $key=> $row) @php $targetId=strtolower($row->name)."_".$row->category_id."_".$row->id; $activeClass=($key==0)? 'active' : ''; @endphp

{{ __('front_site.select_item') }} {{ ++$key}}

{{ $row->name}} {{ ($row->vm_name)?"(".$row->vm_name.")":"" }}
bigpizza
 
{{--
Variation Name: --
--}}
 
@endforeach

@if (count($offerRules) > 0) @foreach ($offerRules as $keyItem=> $cat) @php //$target=strtolower($cat['name'])."_".$cat['id']; $target=strtolower($cat->name)."_".$cat->category_id."_".$cat->id; $style=($keyItem==0)? '' : 'style="display:none;"'; @endphp

{{ $cat->name }}

@if(isset($categoryItems[$cat->category_id]) && count($categoryItems[$cat->category_id]) > 0) @foreach ($categoryItems[$cat->category_id] as $catItem) @if(($cat->variation_id) > 0) @if(($catItem->master_variation_ids == "") || !in_array($cat->variation_id,explode(",",$catItem->master_variation_ids))) @php continue; @endphp @endif @endif @php $showPopUp = false; @endphp @if ($catItem['variation_id'] > 0 || $catItem['is_extra'] > 0) @php $showPopUp = true; @endphp @endif @endforeach @endif
@endforeach @endif
@endif
@endif {{ csrf_field() }}