@extends('backend.layouts.master') @section('title', "Menu") @section('css') @endsection @section('content')

Manage Menu

@if(count($menus) > 0)
{!! Form::open(['route' => 'menu.index','method'=>'get','class'=>'needs-validation','id'=>'basic-form','novalidate'=>'']) !!}
{!! Form::close() !!}
@else
Create your menu and items here.
@endif
Menu Items

@if(count($pages) !== 0) @foreach($pages as $page)
slug, $slug_to_disable)) ? 'disabled':''}}>
@endforeach @else
Please create a page to add in menu.
@endif

@if(count($services) !== 0) @foreach($services as $service)
slug, $slug_to_disable)) ? 'disabled':''}}>
@endforeach @else
Please create a service to add in menu.
@endif

@if(count($blogs) !== 0) @foreach($blogs as $blog)
slug, $slug_to_disable)) ? 'disabled':''}} >
@endforeach @else
Please create a blog to add in menu.
@endif

Please enter the url.
Please enter the url text.
Menu Structure
@if($desiredMenu == '') {!! Form::open(['route' => 'menu.store','method'=>'post','id'=>'menu-form','class'=>'needs-validation','novalidate'=>'']) !!}
Please enter the url text.
Please enter the menu title.
Please enter the menu slug.
{!! Form::close() !!} @else @endif
@if(@$desiredMenu){{@$desiredMenu->content}}@endif
@include('backend.menu.modals.create') @endsection @section('js') @endsection