@extends('layouts.admin') @section('content')
@php $offerStyle = ($result->is_offer_item == 0) ? 'style="display:none"' : ''; $normalStyle = ($result->is_offer_item == 1) ? 'style="display:none"' : ''; $isCustomItem = (isset($result) && ($result->custom_build == 1 || $result->is_offer_item == 2)) ? 'style="display:none"' : ''; @endphp {!! Form::model($result, ['route' => ['global-items.update', $result->id], 'method' => 'POST', 'id' => 'ajaxSave', 'files' => true]) !!}
@php $btnText = __('global_items.archived'); $btnClass = 'btn btn-outline-danger'; if($result->is_archive){ $btnText = __('global_items.un_archived'); $btnClass = 'btn btn-danger'; } @endphp {{ __('global_items.update_in_wolt') }}
@include('admin.global-items.tabs.detail') {!! Form::hidden('tab_detail_changed', 0, ['class' => '__tab_changed']) !!}
@include('admin.global-items.tabs.offer_items') {!! Form::hidden('tab_offer_changed', 0, ['class' => '__tab_changed']) !!}
@if(isset($hasRawMaterial) && $hasRawMaterial == true) @endif @include('admin.global-items.tabs.variation') {!! Form::hidden('tab_variation_changed', 0, ['class' => '__tab_changed']) !!}
@include('admin.global-items.tabs.extra_item') {!! Form::hidden('tab_extra_changed', 0, ['class' => '__tab_changed']) !!}
@include('admin.global-items.tabs.allergy') {!! Form::hidden('tab_allergy_changed', 0, ['class' => '__tab_changed']) !!}
@include('admin.global-items.tabs.nutrition') {!! Form::hidden('tab_nutrition_changed', 0, ['class' => '__tab_changed']) !!}
@include('admin.global-items.tabs.raw_material') {!! Form::hidden('tab_raw_material_changed', 0, ['class' => '__tab_changed']) !!}
@include('admin.global-items.tabs.preparation-steps') {!! Form::hidden('tab_preparation_steps_changed', 0, ['class' => '__tab_changed']) !!}
  • @if($isDuplicate) @endif
  • {{--
  • --}}
@method('PUT') {!! Form::close() !!}