@extends('yonetim.yonetim_master')

@section('main')
    <section class="section">
        <div class="section-body">
            <div class="row">
                <div class="col-12 col-md-9 col-lg-9">


                    <div class="card">



                        <form action="{{route('bildirim.veriekleson')}}" method="post">
                            @csrf
                            <div class="card-body">

                                <div class="col-lg-12 mx-auto">

                                    <a href="{{route('bildirim.all')}}" class="btn btn-success btn-sm float-right"><i class="fa fa-backward"></i> Geri Dön</a>
                                    <br>

                                    @if ($errors->any())
                                        <div class="alert alert-danger">
                                            <ul style="padding: 0;margin: 0">
                                                @foreach ($errors->all() as $error)
                                                    <li>{{ $error }}</li>
                                                @endforeach
                                            </ul>
                                        </div>
                                    @endif


                                    <div class="form-group">
                                        <label>Başlık</label>
                                        <input name="baslik" type="text" class="form-control" value="">
                                    </div>

                                    <div class="form-group">
                                        <label>Tipi</label>
                                        <input name="tipi" type="text" class="form-control" value="">
                                    </div>


                                    <div class="form-group">
                                        <label>İçerik</label>
                                        <textarea name="icerik" type="text" class="summernote"></textarea>
                                    </div>

                                    <div class="card-footer text-right">
                                        <button type="submit" name="genelayarkaydet" class="btn btn-primary">Bildirim Ekle</button>
                                    </div>


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


                    </div>





                </div>

            </div>

        </div>
    </section>
@endsection
