@extends('layouts.app_admin')
@section('title', 'Service')
@push('css')
@endpush

@section('content')

    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="col-12 section-header">
                <div class="col-6">
                    <h1> Add </h1>
                </div>

            </div>
            @if ($errors->any())
                <div class="col-sm-12">
                    <div class="alert  alert-warning alert-dismissible fade show" role="alert">
                        @foreach ($errors->all() as $error)
                            <span>
                                <p>{{ $error }}</p>
                            </span>
                        @endforeach
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                </div>
            @endif

            @include('flash-message')

            <div class="section-body">
                <div class="col-12">
                    <div class="card">
                        {{-- {{ route('product.store') }} --}}
                        <div class="card-body">
                            <form method="POST" action="{{ route('service.store') }}" id="editForm"
                                enctype="multipart/form-data">
                                {{ method_field('POST') }}
                                {{ csrf_field() }}

                                <div class="form-group">
                                    <label>Title <code>*</code></label>
                                    <input type="text" name="title" class="form-control form-control-lg">
                                </div>
                               

                                <div class="form-group">
                                    <label>Short Description <code>*</code></label>
                                    <input type="text" name="short_description" class="form-control form-control-lg">
                                </div>

                                <div class="form-group">
                                    <label>Description <code>*</code></label>
                                    <textarea name="ck_editor_text"></textarea>
                                </div>

                                <div class="form-group">
                                    <label>Image<code>*</code></label>
                                    <input type="file" name="image" class="form-control form-control-lg" />
                                </div>

                                <div class="form-group">
                                    <p for="file" class="font-weight-bold">Icon</p> 
                                    <input type="file" name="icon" class="form-control form-control-lg" />
                                </div>

                               

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

                                </div>

                        </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>


        <!-- End -->
    </div>



@endsection

@section('extra-js')


@endsection
