Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/contact-info/edit.blade.php
@extends('layouts.backend')

    @section('content')  
<!-- Container Fluid-->
            <div class="row">
                <div class="col-lg-12">
                  <!-- Form Basic -->
                  <div class="card mb-4">
                    <div class="card-header card-header-modify py-3 d-flex flex-row align-items-center justify-content-between">
                      <h6 class="m-0 font-weight-bold text-heading-bar">Edit Contact Info</h6>
                        <a href="{{url('contact-info')}}" class="btn btn-default-index  btn-sm text-right "><i class="fas fa-arrow-alt-circle-left"></i> Back</a>
                    </div>
                    <div class="card-body">
                        
                        {!! Form::model($data, ['method' => 'PATCH', 'enctype'  => 'multipart/form-data', 'route' => ['contact-info.update', $data->id] ]) !!}

                            
                            <div class="row">

                                
                                 <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Mobile<span style="color: red"> *</span></label>
                                    <div>
                                        {!! Form::text('mobile', null, array('placeholder' => '','class' => 'form-control', 'required' => '')) !!}
                                        @error('mobile')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('mobile') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                 <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Telephone</label>
                                    <div>
                                        {!! Form::text('telephone', null, array('placeholder' => '','class' => 'form-control')) !!}
                                        @error('telephone')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('telephone') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                 <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Email</label>
                                    <div>
                                        {!! Form::text('email', null, array('placeholder' => '','class' => 'form-control')) !!}
                                        @error('email')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('email') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Latitude </label>
                                    <div>
                                        {!! Form::text('latitude', null, array('placeholder' => '','class' => 'form-control')) !!}
                                        @error('latitude')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('latitude') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Longitude</label>
                                    <div>
                                        {!! Form::text('longitude', null, array('placeholder' => '','class' => 'form-control')) !!}
                                        @error('longitude')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('longitude') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>



                                <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Address</label>
                                    <div>
                                        {!! Form::textarea('address', null, array('placeholder' => '','class' => 'form-control', 'rows' => 4)) !!}
                                        @error('address')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('address') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                                                                   
                            </div>                            
                          
                        <button type="submit" class="btn btn-success">Update</button>
                        {!! Form::close() !!}
                    </div>
                  </div>
                </div>
            </div>
          <!--Row-->


    @endsection