@extends('front.v2.partials.master') @section('content')
@php $itemPrice = $item->offer_price; $maxSelectRemove = $minSelectRemove = ''; @endphp
{!! Form::open(['route' => 'front.v2.add-to-cart', 'method' => 'POST', 'id' => 'add_cart']) !!}
  • {!! $item->name !!}

{!! $item->description !!}

    @if (count($variations) > 0)
  • @foreach ($variations as $key => $variation) {!! $variation->options !!} @if ($key == 0) @php $variationId = $variation->id; $itemPrice = $variation->offer_price; @endphp @endif @endforeach
  • @endif
  • {{-- --}}

@if (count($calories) > 0) @if (count($variations) > 0) @foreach ($variations as $rawVariation)

{!! $rawVariation->options !!} :- @if (isset($calories[$rawVariation->id])) {!! array_sum(array_column($calories[$rawVariation->id], 'total_calories')) !!} {!! __('v2/front_site.kcal') !!} @endif

@endforeach @else {!! array_sum(array_column($calories, 'total_calories')) !!} {!! __('v2/front_site.kcal') !!} @endif @endif

{!! $item->description !!}

@if (count($allergy) > 0) {!! __('v2/front_site.allergies') !!} :

{!! implode(', ', array_column($allergy->toArray(), 'title')) !!}

@endif
@php $j = 1; @endphp @if (count($removedIngredients) > 0)

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

@foreach ($removedIngredients as $remove) @php $buttonClass = $remove['is_default'] == 1 ? 'minus' : 'plus'; $buttonId = $remove['is_default'] == 1 ? 'remove' : 'add'; $maxSelectRemove = $remove['max_select']; $minSelectRemove = $remove['min_select']; @endphp
@php $j++; @endphp @endforeach
@endif
@if (count($variations) > 0) @else @endif
{!! Form::close() !!}
@endsection