User
update.blade.php
@extends('admin/layout/layout')
@section('content')
<div class="content-page">
<div class="content">
<!-- Start Content-->
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h4 class="header-title">Registration Form</h4>
{!! Form::open(['action'=>['admin\userform@update',$usermodel->id],'method'=>'put']) !!}
@csrf
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputEmail4" class="col-form-label">Employe Name</label>
{!! Form::text('fname', $usermodel->fname, ['class' => 'form-control', 'placeholder' => 'countryname']) !!}
{{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
</div>
<div class="form-group col-md-6">
<label for="inputPassword4" class="col-form-label">Gender</label>
{{ Form::radio('gender', 'male', $usermodel->gender=='male' ? true : false ) }} male
<br/>
{{ Form::radio('gender', 'female', $usermodel->gender=='female' ? true : false , []) }} female
{{-- <input type="text" class="form-control" name="lname" placeholder="Password"> --}}
</div>
</div>
<div class="form-group col-md-6">
<label for="inputPassword4" class="col-form-label">Hobby</label>
<?php $temp = $usermodel->hobby;
$array = explode(",",$temp);
?> {!! Form::checkbox('hobby[]', 'cricket' , in_array('cricket', $array) ? true:false) !!}
{!! Form::label('cricket', 'cricket') !!}
{{-- {{ Form::radio('visible', '1', $usermodel->gender=='male' ? true : false ) }} male --}}
{!! Form::checkbox('hobby[]','volleyball',in_array('volleyball',$array) ? true:false) !!}
{!! Form::label('volleyball', 'volleyball') !!}
{!! Form::checkbox('hobby[]','music',in_array('music',$array) ? true:false) !!}
{!! Form::label('Music', 'music') !!}
{{-- <input type="text" class="form-control" name="lname" placeholder="Password"> --}}
</div>
<div class="form-group col-md-6">
<label for="inputEmail4" class="col-form-label">Country</label>
{!! Form::select('countryname', $usercountry, $usermodel->countryname,['class' => 'form-control'] ) !!}
{{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
</div>
<div class="form-group col-md-6">
<label for="inputEmail4" class="col-form-label">Country</label>
{!! Form::select('statename', $userstate, $usermodel->statename,['class' => 'form-control'] ) !!}
{{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
</div>
<div class="form-group col-md-6">
<label for="inputEmail4" class="col-form-label">City</label>
{!! Form::select('cityname', $usercity, $usermodel->cityname,['class' => 'form-control'] ) !!}
{{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
</div>
</div>
<button type="submit" class="btn btn-primary waves-effect waves-light">Submit</button>
</form>
</div>
<!-- end card-body -->
</div>
<!-- end card-->
</div>
<!-- end col -->
</div>
</div>
<!-- container -->
</div>
<!-- content -->
</div>
@endsection
EmoticonEmoticon