@extends('yonetim.yonetim_master')

@section('main')
    <section class="section">
        <div class="section-body">
            <div class="row">
                <div class="col-12 col-md-12 col-lg-9">
                    <div class="card">
                        <form method="post" action="{{route('genelayar.cerezpolitikasipost')}}">
                            @csrf



                            <div class="card-header">
                                <h4>Çerez Politkası</h4>
                            </div>
                            <div class="card-body">


                                @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>Çerez Politkası  </label>
                                    <select class="form-control" name="cerezdurum">
                                        @if($cerezveri->cerezdurum==0)
                                            <option value="0">Aktif Değil</option>
                                            <option value="1">Çerez Uyarısı Aktif</option>
                                        @else
                                            <option value="1">Çerez Uyarısı Aktif</option>
                                            <option value="0">Pasif Yap</option>
                                        @endif


                                    </select>

                                </div>


                                <div class="form-group">
                                    <label>Çerez Uyarı İçerik</label>
                                    <textarea style="min-height: 50px" name="cerezyazisi" type="text" class="form-control" required="" maxlength="255">{{$cerezveri->cerezyazisi}}</textarea>
                                </div>

                                <div class="form-group">
                                    <label>Çerez Link İçerik(Linke Tıklarken Göreceği Yazı)</label>
                                    <input name="cerezlinkyazi" type="text" class="form-control" maxlength="255" required="" value="{{$cerezveri->cerezlinkyazi}}">
                                </div>


                                <div class="form-group">
                                    <label>Çerez Link(Tıklayınca Gideceği Yer)</label>
                                    <input name="crezlink" type="text" class="form-control" maxlength="255" required="" value="{{$cerezveri->crezlink}}">
                                </div>


                                <div class="form-group">
                                    <label>Onaylama Butonu Yazısı</label>
                                    <input name="cerezbutonyazi" type="text" class="form-control" maxlength="255" required="" value="{{$cerezveri->cerezbutonyazi}}">
                                </div>

                            </div>
                            <div class="card-footer text-right">
                                <button type="submit" name="genelayarkaydet" class="btn btn-primary">Güncelle</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
