<form class="row g-3 auto-width" action="{{ route('roles.update-role', $role->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
	 	<input type="text" class="form-control" placeholder="Enter Name" name="name" value="{{ $role->name }}" required>
        <span class="text-danger error_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
    	<select name="landing_page_code" class="form-control">
    		<option value="">-Select-</option>
    		@foreach($modules as $value)
    			<option value="{!! $value->code !!}" {!! matchSelected($value->code, $role->landing_page_code) !!}>{!! $value->menu_name !!}</option>
    		@endforeach
    	</select>
    </div>
</form>