@if(!empty($module)) @foreach($module as $rows) @php $mod_select = App\Models\ModuleAccess::select('module_id','manage','mod_edit','mod_create','mod_delete')->where('user_id',$request->user_id)->where('module_id',$rows->id)->first(); $str = str_replace(' ','_',strtolower($rows->module)); $str = str_replace('&','',$str); @endphp
manage)) checked @endif>
@if($rows->emp==1)
{{$rows->module}}
@else {{$rows->module}} @endif
manage)) checked @endif>
Manage
mod_create)) checked @endif>
Create
mod_edit)) checked @endif>
Edit
mod_delete)) checked @endif>
Delete
@endforeach @endif