@extends('layouts.master') @section('title',__('Edit')." ". $menu->name) @section('breadcum') @endsection @section('maincontent')
@if ($errors->any()) @endif
{{ __('Back') }}
{{__('Edit Menu')}}
{!! Form::model($menu, ['method' => 'PATCH', 'action' => ['MenuController@update', $menu->id]]) !!}
{!! Form::label('name', __('Name')) !!} {!! Form::text('name', null, ['class' => 'form-control', 'required' => 'required']) !!} {{ $errors->first('name') }}
@if(count($menu->menusections)>0)

{{__('Menu Will Contain Following Section')}}
{{__('Atlease One Section Is Required')}}



menusections as $section) @if($section->section_id == 1) value="{{ $section->item_limit }}" @else @endif @endforeach id="limit1" type="number" min="1" name="limit[1]" class="form-control">
menusections as $section) @if($section->section_id == 2) value="{{ $section->item_limit }}" @else @endif @endforeach id="limit2" type="number" min="1" name="limit[2]" class="form-control">


menusections as $section) @if($section->section_id == 3) value="{{ $section->item_limit }}" @else @endif @endforeach id="limit3" type="number" min="1" name="limit[3]" class="form-control">

menusections as $section) @if($section->section_id == 4) value="{{ $section->item_limit }}" @else @endif @endforeach id="limit4" type="number" min="1" name="limit[4]" class="form-control">

menusections as $section) @if($section->section_id == 5) value="{{ $section->item_limit }}" @else @endif @endforeach id="limit5" type="number" min="1" name="limit[5]" class="form-control">

menusections as $section) @if($section->section_id == 6) value="{{ $section->item_limit }}" @else @endif @endforeach id="limit6" type="number" min="1" name="limit[6]" class="form-control">






@if($topsection == 1)

@endif {{ $errors->first('section') }}
@else

{{__('MenuWillContainFollowingSection')}}
{{__('AtleaseOneSectionIsRequired')}}











{{ $errors->first('section') }}
@if($topsection == 1)

@endif
@endif
{!! Form::close() !!}
@endsection @section('script') @endsection