@extends('layouts.app', ['title' => __('Food Campaign')]) @section('content') @include('restorants.partials.header', ['title' => $title])

{{ __('Update Campaign') }}

@csrf
{{ __('Food Info') }}
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
campaign image

{{ __('Amount') }}
@if ($errors->has('price')) {{ $errors->first('price') }} @endif
@if ($errors->has('discount')) {{ $errors->first('discount') }} @endif
@if ($errors->has('discount_type')) {{ $errors->first('discount_type') }} @endif

{{ __('Food Variations') }}
@if (isset($campaign->variations)) @foreach (json_decode($campaign->variations,true) as $key_choice_options=>$item) @if (isset($item["price"])) @break @else @include('campaigns.food._new_variations',['item'=>$item,'key'=>$key_choice_options+1]) @endif @endforeach @endif




{{ __('Time Schedule') }}
@include('layouts.footers.auth') @endsection @section('js') @endsection