<!DOCTYPE html>
<html lang="zxx">


<head>
  <meta charset="utf-8">
    <title>Redline Associates - Blog</title>


@include("header")

  <!--Favicon-->
  <link rel="shortcut icon" href="assets/images/favicon.png" type="image/x-icon">
  <link rel="icon" href="assets/images/favicon.png" type="image/x-icon">

</head>

<body>


<!-- preloader start -->
<div class="preloader">
    <img src="{{asset('assets/images/preloader.gif')}}" alt="preloader">
</div>
<!-- preloader end -->

<header>

    @include("navigation")
</header>

<!-- /navigation -->

<section class="page-title overlay" style="background-image: url(assets/images/_about/aboutus.jpg);">
    <div class="container">
        <div class="row">
            <div class="col-lg-12 text-center">
                <h2 class="text-white font-weight-bold">Our Blog</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{{url('')}}">Home</a>
                    </li>
                    <li>Our Blo1g</li>
                </ol>
            </div>
        </div>
    </div>
</section>

<!-- blog -->
<section class="section">
    <div class="container">
        <div class="row">

            @if (isset($posts) && $posts)
                @foreach ($posts as $post)
                    <div class="col-lg-6 col-sm-6 mb-4 blog-box">
                        <div class="card text-center">
                            <div class="card-img-wrapper bg-gray">
                                <img class="card-img-top rounded-0" src="{{\Illuminate\Support\Facades\URL::to('/') .'/images/'.$post['media']}}"  alt="{{$post['title']}}">
                            </div>
                            <div class="card-body p-3 text-left">
                                <h4 class="card-title ">{{$post['title']}}</h4>
                                {{--<p class="card-text ">Lorem ipsum dolor amet consecte tur adipisicing elit sed done--}}
                                    {{--eius mod tempor enim ad minim veniam quis nostrud.</p>--}}
                                <div class="detail mt-2">
                                    <p style="font-weight: bold; opacity: 0.7;">{{\Carbon\Carbon::parse($post['created_at'])->format('M d, Y')}}</p>
                                </div>
                                <a href="{{url('/blog/post/'.$post['slug'])}}" class="btn btn-secondary mt-3">Read More</a>
                            </div>
                        </div>
                    </div>
                @endforeach
            @endif



        </div>
    </div>
</section>
<!-- /blog -->


@include("footer")
</body>

</html>
