@extends('layouts.admin.app') @section('title',translate('Update campaign')) @push('css_or_js') @endpush @section('content')
@csrf @php($language=\App\Models\BusinessSetting::where('key','language')->first()) @php($language = $language->value ?? null) @php($default_lang = 'bn')
@if($language)
@php($default_lang = json_decode($language)[0])
@endif
{{translate('food_info')}}
@if($language) @foreach(json_decode($language) as $lang) locale == $lang && $t->key=="title"){ $translate[$lang]['title'] = $t->value; } if($t->locale == $lang && $t->key=="description"){ $translate[$lang]['description'] = $t->value; } } } ?>
@endforeach @else
@endif
{{translate('food_image')}} (Ratio 200x200)
campaign image
{{translate('food_details')}}
@php($product_category = json_decode($campaign->category_ids))
{{translate('amount')}}
{{--
{{ translate('messages.add')}} {{translate('messages.attribute')}}
@include('admin-views.product.partials._choices',['choice_no'=>json_decode($campaign['attributes']),'choice_options'=>json_decode($campaign['choice_options'],true)])
@include('admin-views.product.partials._edit-combinations',['combinations'=>json_decode($campaign['variations'],true)])
--}}
{{ translate('messages.food_variations') }}
@if (isset($campaign->variations)) @foreach (json_decode($campaign->variations,true) as $key_choice_options=>$item) @if (isset($item["price"])) @break @else @include('admin-views.product.partials._new_variations',['item'=>$item,'key'=>$key_choice_options+1]) @endif @endforeach @endif
{{translate('time_schedule')}}
@endsection @push('script_2') @endpush