@extends('frontend.'.$temaadi.'.app')
@push("head")
    <title>Günlük Gazete Manşetleri - {{ config('ayarlar.baslik') }}</title>
    <meta name="description" content="{{ config('ayarlar.baslik') }} - Günlük Gazete Manşetleri, Bütün Basılı Gazetelerin Birinci Sayfaları" />
@endpush
@section("content")
    @if(isset($gazeteler))
        @php
        $say = count($gazeteler);
        $s = $_GET['s'];
        @endphp

        @if(empty($s))
        @php
            $s = 0;
        @endphp
            @elseif($say == $s+1)
            @php
                $ileri = 1;
            @endphp
            @else
            @php
                $ileri = intval($s)+1;
            @endphp
        @endif
        <section>
            <div class="archive-header text-center mb-30">
                <h1><span class="font-weight-ultra">Günlük Gazete Manşetleri</span></h1>
                <div class="breadcrumb">
                    <a href="{{ url('/') }}">Ana Sayfa</a>
                    <span></span> Günlük Gazete Manşetleri
                </div>
            </div>
        </section>
        <section class="pt-30 pb-30 bg-white box-shadow mt-15 mb-30">
            <div class="container">
                <div class="row">
                    <div class="col-md-12">
                        <ul class="list-inline gazetelist pl-0">
                            @foreach ($gazeteler as $key => $value)
                                <li class="list-inline-item mr-0">
                                    <a class="text-dark" href="{{ url('gazete-mansetleri/?s='.$key) }}" title="{{ $value->gazete_isim }}">
                                        <i class="font-small ti-angle-right"></i> {{ str_replace("Gazetesi","",$value->gazete_isim) }}
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                        <div class="mt-20 text-center">
                            <a href="./gazete-mansetleri/?s=@if(isset($ileri)){{$ileri}}@endif">
                                <img class="img-fluid" alt="{{$gazeteler[$s]->gazete_isim}}" src="{{$gazeteler[$s]->gazete_resim}}" />
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    @endif
@endsection

@push("customJs")
@endpush

@push("customCss")
@endpush
