"/blog/resources/views/edit.blade.php"
Bootstrap 4.1.1 Snippet by prabuanan

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <form method = "post" action="{{ url('blog/update') }}" name="blog" id="blog" novalidate="novalidate" enctype="multipart/form-data"> {{ csrf_field() }} <input type = "hidden" name = "_token" value = "<?php echo csrf_token() ?>"> <div class="wrap-contact100"> <div class="form-group"> <label>name</label> <input type = "text" class="form-control" name = "name" id="name" value="{{ $edit_user->name }}"/> </div> <div class="form-group"> <label>username</label> <input type = "text" class="form-control" name = "username" id="username" value="{{ $edit_user->user }}"/> </div> <div class="form-group"> <label>password</label> <input type = "password" class="form-control" name = "password" id="password" value="{{ $edit_user->password }}"/> </div> <div class="form-check"> <label>gender</label> <input type="radio" class="form-control" name="gender" id="genderm" value="male" {{ $edit_user->gender == 'male' ? 'checked' : ''}}/> Male <input type="radio" class="form-control" name="gender" id="genderf" value="female" {{ $edit_user->gender == 'female' ? 'checked' : ''}}/> Female </div> <div class="form-group"> <label>vehicle</label> <label class="form-check-inline"> <input class="form-check-input" type="checkbox" name="vehicle[]" value="bike" {{in_array("bike", $find)?"checked":""}}> bike </label> <label class="form-check-inline"> <input class="form-check-input" type="checkbox" name="vehicle[]" value="car" {{in_array("car", $find)?"checked":""}}> car </label> </div> <div class="form-group"> <label>bike company</label> <!-- <input type = "text" class="form-control" name = "bikecompany" id="bikecompany" value="{{ $edit_user->bikecompany }}"/> --> <select class="form-control" id="type" name="user_id"> @foreach($edit_user->bikecompany) <option> {{$edit_user->bikecompany}}</option> @endforeach </select> </div> <div class="form-group"> <input type = "submit" class="btn btn-primary" name="btn_blog" id="btn_blog" value = "Register" /> </div> </div> </form>

Related: See More


Questions / Comments: