@include('header')
<div class="container-fluid flex-grow-1 container-p-y">
    <h4 class="font-weight-bold py-3 mb-0">Add Consent</h4>

    @if (session('msg'))
                        <script>
                                alert("Record Saved Successfully!");
                                window.location.href="/consent";
                            </script>
                    @endif

    <form id="validation-form" method="POST" action="/saveConsent">

        <input type="hidden" name="action" id="action" value="Save">
        <input type="hidden" name="saveid" id="saveid" value="">
        @csrf
        <div class="card mb-12 mb-4">
            <div class="card-body">
                <div class="row">

                    <div class="col-sm-10">
                        <div class="form-group">
                            <label>File Name <span class="text-danger">*</span></label>
                            <input type="text" class="form-control" name="Name" id="Name" placeholder="" value="">
                        </div>
                    </div>

                    <div class="col-sm-2">
                        <div class="form-group">
                            <label class="floating-label" for="Phone">Language<span
                                    class="text-danger">*</span></label>
                           <select class="form-control" name="Language" id="Language">
                            <option value="Marathi">Marathi</option>
                                <option value="Hindi">Hindi</option>
                             
                               
                            </select>
                        </div>
                    </div>

                    <div class="col-sm-12">
                        <div class="form-group">
                            <label>Title <span class="text-danger">*</span></label>
                            <input type="text" class="form-control" name="Title" id="Title" placeholder="" value="">
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="floating-label" for="Name">Details <span
                                    class="text-danger">*</span></label>
                            <textarea class="form-control" name="Details" id="editor1"></textarea>
                        </div>
                    </div>
                 
                    <div class="col-sm-6" style="padding-top:20px;">
                        <button class="btn btn-primary" type="submit" name="submit" id="submit">Save</button>
                     
                    </div>


                            </div>
                        </div>
                    </div>
                  

                </div>
            </div>



    </form>


</div>

<script src="{{url('assets/js/jquery-3.6.0.min.js')}}"></script>
<script src="{{url('ckeditor/ckeditor.js')}}"></script>
@include('footerscript')
<script>
    CKEDITOR.replace('editor1');
   
    </script>