Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/abouts/create.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">Add About Us</h6>
                        <a href="{{route('abouts.index')}}" 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">
                        <!-- @if (count($errors) > 0)
                          <div class="alert alert-danger">
                                <strong>Whoops!</strong> There were some problems with your input.<br><br>
                                <ul>
                                   @foreach ($errors->all() as $error)
                                     <li>{{ $error }}</li>
                                   @endforeach
                                </ul>
                          </div>
                        @endif -->

                        {!! Form::open(array('route' => 'abouts.store','method'=>'POST', 'enctype'  => 'multipart/form-data')) !!}
                            <div class="row">

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


                                <!-- <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Banner Image<span style="color: red"> *</span></label>
                                    <div>
                                        {!! Form::file('banner_image', array('class' => 'form-control banner_image',  'onchange' => 'previewImage("banner_image", "previewImg", "banner_image")')) !!}
                                        
                                                  
                                        @error('banner_image')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('banner_image') }}</strong>
                                            </span>
                                        @enderror

                                        <span class="invalid-feedback  alert-banner_image" role="alert" style="font-weight: bold;"></span>

                                        <img id="previewImg" src="" alt="">

                                    </div>
                                </div> -->


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

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

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

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

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

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

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

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


    @endsection