@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-10">


                    <div class="card">



                        <form action="{{route('eklenti.veriupdateson',$veriler->id)}}" method="post">
                            @csrf
                            <div class="card-body">


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

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

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

                                    <div class="form-group">
                                        <label>İçerik</label>
                                        <textarea style="min-height: 100px" name="icerik" required type="text" class="form-control">{{$veriler->icerik}}</textarea>
                                    </div>


                                    <div class="form-group">
                                        <label>Fiyat</label>
                                        <input name="fiyat" required type="number" class="form-control" value="{{$veriler->fiyat}}">
                                    </div>

                                    <div class="form-group">
                                        <label>Ekpaket Durum</label>
                                        <select name="durum" class="form-control">
                                            @if($veriler->durum==1)
                                                <option value="1">Aktif</option>
                                                <option value="0">Pasif</option>
                                            @else
                                                <option value="0">Pasif</option>
                                                <option value="1">Aktif</option>
                                            @endif
                                        </select>
                                    </div>


                                    <div class="form-group">
                                        <label>Sepet Sayfasında Göster</label>
                                        <select name="sepettegoster" class="form-control">
                                            @if($veriler->sepettegoster==1)
                                                <option value="1">Aktif</option>
                                                <option value="0">Pasif</option>
                                            @else
                                                <option value="0">Pasif</option>
                                                <option value="1">Aktif</option>
                                            @endif
                                        </select>
                                    </div>


                                    <div class="form-group">
                                        <label>Script Detayında Göster</label>
                                        <select name="detaydagoster" class="form-control">
                                            @if($veriler->detaydagoster==1)
                                                <option value="1">Aktif</option>
                                                <option value="0">Pasif</option>
                                            @else
                                                <option value="0">Pasif</option>
                                                <option value="1">Aktif</option>
                                            @endif
                                        </select>
                                    </div>



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


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


                    </div>





                </div>

            </div>

        </div>
    </section>
@endsection
