Monday, August 10, 2020

CRud Files

Tags

 User

    create.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 action="{{URL('admin/user')}}" method="POST">
                        @csrf
                        <div class="form-row">
                           <div class="form-group col-md-6">
                              <label for="inputEmail4" class="col-form-label">First name</label>
                              {!! Form::text('fname'$value=null, ['class'=>'form-control','placeholder'=>'First Name']) !!}
                              {{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
                           </div>
                        </div>

                        <div class="form-row">
                            <div class="form-group col-md-6">
                               <label for="inputEmail4" class="col-form-label">Gender</label>
                               {{ Form::radio('gender'$value = 'male')  }}male
                            {{ Form::radio('gender'$value = 'female'}}female
                               {{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
                            </div>
                         </div>

                         <div class="form-row">
                            <div class="form-group col-md-6">


                               <label for="hobby" class="col-form-label">Cricket</label>
                                {!! Form::checkbox('hobby[]','cricket')!!}
                                <label for="hobby" class="col-form-label">Volleyball</label>
                                {!! Form::checkbox('hobby[]','volleyball')!!}
                                <label for="hobby" class="col-form-label">Travelling</label>
                                {!! Form::checkbox('hobby[]','travelling')!!}
                               {{-- {!! Form::text('fname', $value=null, ['class'=>'form-control','placeholder'=>'First Name']) !!} --}}
                               {{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
                            </div>
                         </div>

                         <div class="form-row">
                            <div class="form-group col-md-6">
                               <label for="inputEmail4" class="col-form-label">Country</label>
                               {!!  Form::select('countryname'$usercountry,'S', ['class' => 'form-control' ]) !!}
                               {{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
                            </div>
                         </div>
                         <div class="form-row">
                            <div class="form-group col-md-6">
                               <label for="inputEmail4" class="col-form-label">State</label>
                               {!!  Form::select('statename'$userstate,'S', ['class' => 'form-control' ]) !!}
                               {{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
                            </div>
                         </div>
                         <div class="form-row">
                            <div class="form-group col-md-6">
                               <label for="inputEmail4" class="col-form-label">City</label>
                               {!!  Form::select('cityname'$usercity,'S', ['class' => 'form-control' ]) !!}
                               {{-- <input type="text" class="form-control" placeholder="First Name" name="fname"> --}}
                            </div>
                         </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