@if (permissionCheck('noticeboard.type.store'))
    <div class="modal fade admin-query" id="add_type">
        <div class="modal-dialog  modal-dialog-centered">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">{{__('common.Add')}} {{__('noticeboard.Notice Type')}}</h4>
                    <button type="button" class="close " data-bs-dismiss="modal">
                        <i class="ti-close "></i>
                    </button>
                </div>

                <div class="modal-body">
                    <form action="{{route('noticeboard.type.store')}}" method="POST">
                        @csrf
                        <div class="row">
                            <div class="col-xl-12">
                                <div class="primary_input mb-25">
                                    <label class="primary_input_label" for="">{{__('common.Title')}}
                                        <strong
                                            class="text-danger">*</strong></label>
                                    <input class="primary_input_field" name="title" placeholder="-"
                                           type="text" id=""
                                           value="{{ old('title') }}" {{$errors->first('title') ? 'autofocus' : ''}}>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xl-12">
                                <div class="primary_input mb-25">
                                    <label class="primary_input_label" for="">{{__('common.Color')}}
                                        <strong
                                            class="text-danger">*</strong></label>
                                    <input class="primary_input_field" name="color" placeholder="-"
                                           type="color" id=""
                                           value="{{ old('color','#36D98B') }}" {{$errors->first('color') ? 'autofocus' : ''}}>
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-12 text-center pt_15">
                            <div class="d-flex justify-content-center">
                                <button class="primary-btn semi_large2  fix-gr-bg"
                                        id="save_button_parent"
                                        type="submit"><i
                                        class="ti-check"></i> {{__('common.Save')}} {{__('noticeboard.Notice Type')}}
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endif
