@extends('home') @section('title') {{ __(ucfirst($section)) }} - {{ __('Add') }} @endsection @section('styles') @endsection @section('content')
({{ __(ucfirst($section)) }}) {{ __('Add') }}
{!! Form::open(array('route' => ['MenuStore',$section],'files' => true ,'class' => 'form-horizontal','id' => 'form-main')) !!}
@if (multLang()) @endif
@foreach (config('translatable.locales') as $lang => $language)
@endforeach

{{ Form::select('page_id', $pages, '', ['id' => 'page_id', 'class' => 'form-control ','data-placeholder' => __('Select') ]) }}
{!! Form::close() !!}
@foreach ($menus as $index => $item) @endforeach
{{ __('Title') }} {{ __('Status') }} {{ __('Action') }}
@if ($item->depth > 1) {!! str_repeat('-',$item->depth) !!} {{ $item->title }} @else {{ $item->title }} @endif {{ Form::open(['method' => 'DELETE', 'route' => ['MenuDestroy',$section, $item->id]]) }} {{ Form::close() }}
@endsection @section('scripts') {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/lib/markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/js/bootstrap-markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/jquery.validate.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/additional-methods.min.js') !!} @endsection