@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('yorumlar.veriupdateson',$veriler->id)}}" method="post" enctype="multipart/form-data">
                            @csrf
                            <div class="card-body">
                                <div class="col-lg-12 mx-auto">

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

                                    <div style="margin-bottom: 10px" class="form-group">

                                        <img style="height: 150px" src="{{asset($veriler->resimyol)}}">
                                        <p style="padding: 0;margin: 0">Güncel Resim</p>
                                        <input type="hidden" name="eskiresimyol" value="{{$veriler->resimyol}}">
                                    </div>

                                    <div class="form-group">
                                        <label>Resim Yükle</label>
                                        <input name="resimyol" class="form-control" type="file">


                                    </div>


                                    <div class="form-group">
                                        <label>Yazar</label>
                                        <input name="yazar" type="text" class="form-control" value="{{$veriler->yazar}}">
                                    </div>

                                    <div class="form-group">
                                        <label>İçerik</label>
                                        <textarea name="icerik" type="text" class="form-control">{{$veriler->icerik}}</textarea>
                                    </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
