
<!-- /.card-header -->
<div class="card-body">
    <form id="validation2" action="{{route('admin::save_services')}}" method="POST" enctype="multipart/form-data">
        @csrf

        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label for="exampleInputFile">File input</label><span style="color:red;">*</span>
                    <div class="input-group">
                        <div class="custom-file">
                            <input type="file" class="custom-file-input" name="image" id="exampleInputFile">
                            <label class="custom-file-label" for="exampleInputFile">Choose file</label>
                        </div>
                        <div class="input-group-append">
                            <span class="input-group-text">Upload</span>
                        </div>
                    </div>
                </div>

                @if ($errors->has('image'))
                    <span class="alert alert-danger">{{ $errors->first('image') }}</span>
                @endif
            </div>
        </div>
        <br>

        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Title</label>
                    <input type="text" name="title" class="validate[required] form-control" placeholder="Enter ...">
                </div>
                @if ($errors->has('title'))
                    <span class="alert alert-danger">{{ $errors->first('title') }}</span>
                @endif


            </div>
        </div>
        <br>


        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Heading</label>
                    <input type="text" name="heading1" class="validate[required] form-control" placeholder="Enter ...">
                </div>
                @if ($errors->has('heading1'))
                    <span class="alert alert-danger">{{ $errors->first('heading1') }}</span>
                @endif


            </div>
        </div>
        <br>






        <div class="row">
            <div class="col-sm-12">

                <div class="form-group">
                    <label>First Content</label><span style="color:#ff0000;">*</span>
                    <textarea name="content1" class="validate[required] summernote"  placeholder="Enter ..."></textarea>
                </div>
                @if ($errors->has('content1'))
                    <span class="alert alert-danger">{{ $errors->first('content1') }}</span>
                @endif
            </div>
        </div>


        <div class="row">
            <div class="col-sm-12">

                <div class="form-group">
                    <label>Second Content</label><span style="color:#ff0000;">*</span>
                    <textarea name="content2" class="validate[required] summernote"  placeholder="Enter ..."></textarea>
                </div>
                @if ($errors->has('content2'))
                    <span class="alert alert-danger">{{ $errors->first('content2') }}</span>
                @endif
            </div>
        </div>
        
        <!-- input states -->

        <div class="row">

            <div class="col-md-12">
                <div class="form-group" style="text-align:center">
                    <input type="submit" value="Submit" class="btn btn-primary">
                </div>
            </div>
        </div>
    </form>
</div>

<!-- /.card-body -->
<script type="text/javascript">
    jQuery("#validation2").validationEngine({promptPosition: 'inline'});
    $('.select2').select2();
</script>
