@extends('admin.layouts.app') @section('title', 'page') @section('content')

All Pages

Permission assign

@if ($error = Session::get('error'))

{{ $error }}

@endif @if ($message = Session::get('message'))

{{ $message }}

@endif
{{ csrf_field() }}
@if(!empty($permissions) || !empty($chcked_permissions)) @php $oldName = ''; @endphp @foreach($permissions as $key => $permission) @php $module = explode('_', $permission->name); $moduleName = !empty($module[0]) ? ucfirst($module[0]) : ''; $inputClass = str_replace(' ', '_', $moduleName); @endphp @if(empty($moduleName))

Fristly, please create permissions

@endif
@if($oldName != $moduleName)
@endif
@php $oldName = $moduleName; @endphp @endforeach @endif
@push('scripts') @endpush @endsection