@extends('layouts.app') {{-- Include the layout --}} @section('content')
Menu Rights
Module
Category
Sub-Category
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@csrf @php $mcount = 0; @endphp @foreach($modulelist as $list) @php if($list->inactive==0){ $checked='checked'; } else { $checked=''; } @endphp @endforeach
Sr. Name Active
{{ ++$mcount; }} {{ $list->label }}
@php $catcount = 0; @endphp @foreach($categorylist as $catlist) @php if($catlist->moduleid==$list->id){ if($catlist->inactive==0){ $checked='checked'; } else { $checked=''; } @endphp @php if(getMenusCount('parentid',$catlist->id)>0){ @endphp @php } } @endphp @endforeach
Sr. Category Active
{{ ++$catcount }} {{ $catlist->label }}
@php $subcatcount = 0; @endphp @foreach($subcatlist as $subcat) @php if($subcat->parentid==$catlist->id){ if($subcat->inactive==0){ $checked='checked'; } else { $checked=''; } @endphp @php } @endphp @endforeach
Sr. Sub-Category Active
{{ ++$subcatcount }} {{ $subcat->label }}

@endsection