@extends('yonetim.yonetim_master')

@section('main')
    <section class="section">
        <div class="section-body">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header">
                            <h4>Slider Listesi</h4>


                        </div>
                        <div class="card-body">

                            <div class="table-responsive">
                                <table class="table table-striped" id="table-1">
                                    <thead>
                                    <tr>

                                        <th>Başlık</th>
                                        <th>Linkyol</th>
                                        <th>Resimyol</th>
                                        <th>Son İşlem</th>


                                        <th>İşlemler</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    @foreach($veriler as $veri)
                                        <tr>

                                            <td>{{$veri->baslik}}</td>
                                            <td>{{$veri->ustbaslik}}</td>


                                            <td class="align-middle">
                                                <img style="height: 50px" src="{{asset($veri->resimyol)}}">
                                            </td>

                                            <td>
                                                {{ Carbon\Carbon::parse($veri->updated_at)->diffForHumans() }}
                                            </td>


                                            <td>
                                                <a href="{{ route('slider.veriupdate',$veri->id)}}" class="btn btn-warning"><i class="fa fa-edit"></i> Düzenle</a>
                                            </td>
                                        </tr>
                                    @endforeach





                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </section>
@endsection
