Edit Sub Admin

{{ Form::open(['role' => 'form','id'=>'EditForm','route'=>[$modelName.'.edit',base64_encode(serialize($subadmin->id))],'files' => true]) }} {{csrf_field()}}
{{ $errors->first('name') }}
{{ $errors->first('email') }}
{{ $errors->first('mobile') }}
{{ $errors->first('password') }}
Module Assignment

@php $modelAllData = DB::table('models')->get(); @endphp @foreach($modelAllData as $key => $modelAllData) @php $selected_model_value = DB::table('sub_admin_models') ->where('model_id', $modelAllData->id) ->where('sub_admin_id', $subadmin->id) ->first(); @endphp @endforeach
# Menu Models
{{ $key + 1 }} {{ ucwords($modelAllData->model_name) }} @php $modelAllDataContent = DB::table('model_actions')->where('model_id', $modelAllData->id)->get(); @endphp @foreach($modelAllDataContent as $key => $action_model_val) @php $checkaction = DB::table('sub_admin_models') ->where('model_id', $modelAllData->id) ->where('model_actions_id', $action_model_val->id) ->where('sub_admin_id', $subadmin->id) ->first(); @endphp @endforeach
{{ Form::close() }}