@extends('tema.layout.home_master')



@section('title')
    <title>{{$blogdata->baslik}}</title>
    <meta name="description" content="{{ $blogdata->description }}">
    <meta name="keywords" content="{{ $blogdata->keywords }}">
@endsection

@section('main')



    <section class="page-header">
        <div style="background-image: url({{asset($bannerdata->resimyol)}});" class="background-image-banner"></div>
        <div class="container bannerdetay">
            <h2>{{$blogdata->baslik}}</h2>
            <ul class="list-unstyled thm-breadcrumb">
                <li><a href="{{route('home')}}">Anasayfa</a></li>
            </ul><!-- /.list-unstyled thm-breadcrumb -->
        </div><!-- /.container -->
    </section><!-- /.page-header -->





    <section class="blog-details">
        <div class="container">
            <div class="row">
                <div class="col-lg-9">
                    <div class="blog-details__main">
                        <div class="blog-details__image">
                            <img class="scriptresim" src="{{asset($blogdata->resimyol)}}" alt="{{$blogdata->resimyol_alt}}">
                        </div><!-- /.blog-details__image -->
                        <div class="blog-details__content">
                            <div class="blog-details__meta">
                                <a>{{  \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $blogdata->updated_at)->format('d.m.Y H:i:s')}}</a>
                                <span></span>
                            </div><!-- /.blog-details__meta -->

                            <div>{!! $blogdata->aciklama !!}</div>

                        </div><!-- /.blog-details__content -->


                    </div><!-- /.blog-details__main -->

                </div><!-- /.col-lg-9 -->
                <div class="col-lg-3">
                    <div class="sidebar">

                        <div class="sidebar__single">
                            <h3>Son Eklenenler</h3>


                            <ul class="list-unstyled sidebar__cat-list">
                                @foreach($bloglar as $blog)
                                    <li><a href="{{route('blog.detay',$blog->slug)}}">{{$blog->baslik}}</a></li>


                                @endforeach
                            </ul><!-- /.list-unstyled -->
                        </div><!-- /.sidebar__single -->

                    </div><!-- /.sidebar -->
                </div><!-- /.col-lg-3 -->
            </div><!-- /.row -->
        </div><!-- /.container -->
    </section><!-- /.blog-details -->





@endsection
