@extends(config('app.admin.view').".layouts.master")

@section('title')
    Add Banner
@endsection

@section('content')

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">

        <!-- Content Header (Page header) -->
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h4>Add Banner</h4>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="#"> Home </a></li>
                            <li class="breadcrumb-item active"> Add Banner </li>
                        </ol>
                    </div>
                </div>
            </div>
        </section>
        <!-- Content Header (Page header) -->

        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12 mb-4 mt-0">

                        <div class="card card-primary">
                            <div class="card-header">
                                <h2 class="card-title">Banner Add</h2>
                                <a class="btn btn-dark text-white btn-xs float-right"
                                    href="{{ config('app.admin.url') . 'banner' }}">
                                    <i class="fa fa-list"></i> Banner List</a>
                            </div>

                            <form action="{{ config('app.admin.url') . 'banner/store' }}" method="POST"
                                class="form-style3" enctype="multipart/form-data">
                                @csrf
                                <div class="card-body">

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

                                            

                                    <div class="form-group">
                                        <label for="image">Image (1920 x 800)px </label>
                                        <input type="file" name="image" id="image" class="dropify"
                                            accept="image/png, image/jpeg, image/jpg, image/gif, image/svg, image/webp"
                                            data-max-file-size="2M">
                                    </div>

                                    <div class="form-group mt-4">
                                        <label for="title">Title</label>
                                        <input type="text" class="form-control" id="title" name="title"
                                            value="{{ old('title') }}">
                                    </div>
 
                                    {{-- <div class="form-group mt-4">
                                        <label for="pretitle">Pre Title</label>
                                        <input type="text" class="form-control" id="pretitle" name="pretitle"
                                            value="{{ old('pretitle') }}">
                                    </div> --}}


                                    

                                  
                                    </div>
                                    <div class="col-md-6">
                                        
                                    <div class="form-group mt-4">
                                        <label for="link">Link</label>
                                        <input type="text" class="form-control" id="link" name="link"
                                            value="{{ old('link') }}">
                                    </div>

                                    <div class="form-group mt-4">
                                        <label for="linktext">Link Text</label>
                                        <input type="text" class="form-control" id="linktext" name="linktext"
                                            value="{{ old('linktext') }}">
                                    </div>

                                    
                                    <div class="form-group mt-4">
                                        <label for="link2">Link 2</label>
                                        <input type="text" class="form-control" id="link2" name="link2"
                                            value="{{ old('link2') }}">
                                    </div>
                                    
                                    <div class="form-group mt-4">
                                        <label for="linktext2">Link Text 2</label>
                                        <input type="text" class="form-control" id="linktext2" name="linktext2"
                                            value="{{ old('linktext2') }}">
                                    </div>

                                     <div class="form-group">
                                        <label for="exampleInputEmail1">Status</label>
                                        <select name="status" class="form-control">
                                            <option value="1">Active</option>
                                            <option value="0">Disabled</option>
                                        </select>
                                    </div>

                                    </div>
                                    <div class="col-md-12">
                                        
                                    <div class="form-group mt-4">
                                        <label for="description">Description</label>
                                        <textarea type="text" class="form-control" id="description" name="description">{{ old('description') }}</textarea>
                                    </div>
                                    </div>
                                    </div>
                                    

                                </div>

                                <div class="card-footer text-right">
                                    <button type="submit" class="btn btn-primary">Submit</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    {{-- <script>
        $(document).ready(function () {
            $('#description').summernote({
              'height':'200px'
            });
        });
    </script> --}}
@endsection
