{!! Form::select('menu_id',$menu, old('menu_id'), array('id' => 'menu_id', 'required', 'class' => 'form-control', 'placeholder' => trans('Choose'))) !!} @if ($errors->has('menu_id')) {{ $errors->first('menu_id') }} @endif
{!! Form::text('title', NULL, array('id' => 'title','required', 'class' => 'form-control', 'placeholder' => trans('Title'))) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
{!! Form::textarea('description', NULL, array('id' => 'description', 'required', 'class' => 'form-control ckeditor ', 'placeholder' => trans('Description'))) !!} @if ($errors->has('description')) {{ $errors->first('description') }} @endif
@push('script') @if(isset($content->menu)) @if ($content->menu->slug == 'chairman-message' || $content->menu->slug == 'headteacher-message') @component('components.cropper.element',['width'=>'600','height'=>'350','type'=>'square']) @endcomponent @else @component('components.cropper.element',['width'=>'640','height'=>'272','type'=>'square']) @endcomponent @endif @else @component('components.cropper.element',['width'=>'640','height'=>'272','type'=>'square']) @endcomponent @endif @endpush