@extends('master')
@section('icerik')

    <div class="container" style="background-size: 100%; background-repeat: no-repeat; margin-top: 40px; margin-bottom: 40px;">
        <h3>Blog</h3>
        <p>Sektörden & bizden haberler ve içerikler</p>
        <div class="row gx-5" style="background-size: 100%; background-repeat: no-repeat;">


            <div class="col-lg-12" style="background-size: 100%; background-repeat: no-repeat;">
                <div class="row" style="background-size: 100%; background-repeat: no-repeat;">

                    @foreach($blog as $item)
                        <div class="col-lg-4">
                            <div class="bloglist s2 item">
                                <div class="post-content">
                                    <div class="post-image">
                                        <div class="date-box">
                                            <div class="m">{{ \Carbon\Carbon::createFromDate($item->tarih)->format('d') }}</div>
                                            <div class="d">{{ \Carbon\Carbon::createFromDate($item->tarih)->format('M') }}</div>
                                        </div>
                                        <img alt="" src="{{$item->img}}" class="lazy">
                                    </div>
                                    <div class="post-text">
                                        <h4><a href="{{ $item->slug }}">{{ $item->baslik }}<span></span></a></h4>
                                        <p>{{ substr($item->icerik,0,150) }}..</p>
                                        <a class="btn-main" href="{{ $item->slug }}">Devamını Oku</a>
                                    </div>
                                </div>
                            </div>
                        </div>

                    @endforeach

                </div>
            </div>

        </div>
    </div>

@endsection
