@extends('base.layouts.master') @section('style') @endsection @section('content')

@lang('list-table.role-privileges') @if(app()->getLocale() == 'en') {{$adminRole->name}} @else {{$adminRole->fa_name}} @endif

@lang('list-table.list-allowed-items') @if(app()->getLocale() == 'en') {{$adminRole->name}} @else {{$adminRole->fa_name}} @endif
@if(count($errors))
    @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach
@endif @include('base.layouts.partials.general.message')
{{ csrf_field() }} @foreach($modules as $module)

@if(app()->getLocale() == 'en') {{$module->name}} @else {{$module->fa_name}} @endif

@if(app()->getLocale() == 'fa') @endif @foreach($module->adminModuleItems as $adminModuleItem) @php($check_all = 0) @if(auth()->user()->admin_role_id != 1 && $adminModuleItem->active_in_project == 0) @continue @endif @if(app()->getLocale() == 'fa') @endif @endforeach
@lang('list-table.row') @lang('list-table.en-name') @lang('list-table.fa-name')





{{$adminModuleItem->id}} {{$adminModuleItem->name}}{{$adminModuleItem->fa_name}}
@if ($adminModuleItem->clickable_type !=1) @if( !empty( $permission_arr[$adminRole->id][$adminModuleItem->id]['add'] ) ) @php($check_all++) @else @endif @endif
@if ($adminModuleItem->clickable_type !=1) @if( !empty( $permission_arr[$adminRole->id][$adminModuleItem->id]['edit'] ) ) @php($check_all++) @else @endif @endif
@if ($adminModuleItem->clickable_type !=1) @if( !empty( $permission_arr[$adminRole->id][$adminModuleItem->id]['delete'] ) ) @php ($check_all++) @else @endif @endif
@if( !empty( $permission_arr[$adminRole->id][$adminModuleItem->id]['view'] ) ) @php($check_all++) @else @endif
@if( $check_all==4 ) @else @endif
@endforeach
@endsection @section('script') @endsection