@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>
manage)) checked @endif>
mod_create)) checked @endif>
mod_edit)) checked @endif>
mod_delete)) checked @endif>
@endforeach @endif