@if ($label)
  • {{--
  • --}}
  • @if (isset($varRow) && isset($allowHalfPizza[$varRow->category_id]) && $allowHalfPizza[$varRow->category_id] == 1)
  • @endif
@endif @php $totalp = $totalp25 = $rawCost = $rawCost25 = 0; if (isset($varRow)) { $varId = $varRow->id; if (isset($varMaterial[$varId])) { $totalp = array_filter($varMaterial[$varId], function ($a) { return $a['status'] == 1; }); $rawCost = array_sum(array_column($totalp, 'sub_total_price')); $totalp = array_sum(array_column($totalp, 'total_price')); $totalp25 = array_filter($varMaterial[$varId], function ($a) { return $a['status_2'] == 1; }); $rawCost25 = array_sum(array_column($totalp25, 'sub_total_price')); $totalp25 = array_sum(array_column($totalp25, 'total_price')); } } @endphp @if ($label)
@endif
@php if (isset($varRow)) { $parentVariations[$varRow->master_variation_id] = $varRow->options; $parentVariations = array_unique($parentVariations); } @endphp {!! Form::select('variation_option[' . ($varKey ?? '') . ']', $parentVariations, $varRow->master_variation_id ?? '', ['class' => 'form-control select2-new __variation_option']) !!}
@if (isset($varRow)) @endif
@if (isset($varRow)) @php $vat = ($result->outside_rate + 100) / 100; $insidevat = ($result->inside_rate + 100) / 100; $finalPrice = $varRow->offer_price; $finalPriceExclVat = $finalPrice / $vat; @endphp
{!! __('item.price') !!}: {!! numberFormat($finalPrice, true, false) . ' (' . numberFormat($finalPriceExclVat, true, false) . ' Ex.VAT) ' !!}
@if ($totalp > 0) @php // $rawCost=$varRow->tp; $rawExclVat = $rawCost; @endphp
{!! __('item.raw_cost') !!} : {!! numberFormat($totalp, true, false) . ' (' . numberFormat($rawExclVat, true, false) . ' Ex.VAT) ' !!}
{!! __('item.percentage') !!}: @if ($finalPrice > 0) {!! round(($totalp / $finalPrice) * 100, 2) !!} @else {!! 0 !!} @endif % @if ($finalPriceExclVat > 0) ({!! round(($rawExclVat / $finalPriceExclVat) * 100, 2) !!} %) @else ({!! 0 !!} %) @endif
@endif @endif
@if (isset($varRow)) @if ($varRow->inside_price > 0) @php $finalPriceInside = $varRow->inside_price; $finalPriceInsideExVat = $finalPriceInside / $insidevat; @endphp
{!! __('item.price') !!}: {!! numberFormat($finalPriceInside, true, false) . ' (' . numberFormat($finalPriceInsideExVat, true, false) . ' Ex.VAT) ' !!}
@endif @if ($totalp25 > 0) @php //$rawCost25=$varRow->tp25; $rawExclVatInside = $rawCost25; @endphp
{!! __('item.raw_cost') !!} : {!! numberFormat($totalp25, true, false) . ' (' . numberFormat($rawExclVatInside, true, false) . ' Ex.VAT) ' !!}
@if ($varRow->inside_price > 0)
{!! __('item.percentage') !!}: @if ($finalPrice > 0) {!! round(($totalp25 / $finalPriceInside) * 100, 2) !!} @else {!! 0 !!} @endif % @if ($finalPriceInsideExVat > 0) ({!! round(($rawExclVatInside / $finalPriceInsideExVat) * 100, 2) !!} %) @else ( {!! 0 !!} %) @endif
@endif @endif @endif
{{--
--}}
@if (isset($varRow)) @if (isset($allowHalfPizza[$varRow->category_id]) && $allowHalfPizza[$varRow->category_id] == 1) @endif @endif    
{{--
{!! __('item.meny_prices') !!}
--}}
@php $variationTypeJson = isset($varRow->variation_type_json) && $varRow->variation_type_json ? json_decode($varRow->variation_type_json,true) : []; @endphp @foreach ($nightMenyDetails as $nKey => $nValue) @php $menyPrice = isset($variationTypeJson['meny']) && isset($variationTypeJson['meny'][$nKey]) ? $variationTypeJson['meny'][$nKey] : ''; $insidePrice = isset($variationTypeJson['meny_inside']) && isset($variationTypeJson['meny_inside'][$nKey]) ? $variationTypeJson['meny_inside'][$nKey]:''; @endphp
{!! taxLang() !!}
{!! taxLang(true) !!}
{{--
--}} @endforeach
{{--
@foreach ($nightMenyDetails as $nKey => $nValue )
@endforeach
--}}
@php $showCustomDiv = (isset($result) && $result->is_offer_item == 2) ? "" : "display:none"; @endphp
@if($label)
Variation Step No
@endif {!! Form::select('variation_step[' . ($varKey ?? '') . ']', ['' => '-Select-', 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5], $varRow->variation_step ?? '', ['class' => 'form-control select2-new __variation_step']) !!}
@if($label)
Variation Group Name
@endif
@if(isset($variationsTypes) && count($variationsTypes) > 0 && false)
@foreach($variationsTypes as $vTypeId => $vTypeName) @if($vTypeId > 0)
{{ $vTypeName }}
@endif @endforeach
@endif
@if (isset($itemLast) && $itemLast)
@endif