@extends("Front::Layout.master")

@section("title")
    @if(isset($page->post_meta_array["meta_title"])){{ $page->post_meta_array["meta_title"] }}@else{{ $page->title }}@endif
@endsection

@section("meta")
    <meta name="robots" content="@if(isset($page->post_meta_array["meta_follow"])){{ $page->post_meta_array["meta_follow"] }}@endif, @if(isset($page->post_meta_array["meta_index"])){{ $page->post_meta_array["meta_index"] }}@endif">
    <link rel="canonical" href="{{ url()->current() }}/">
    <meta property="og:locale" content="fa_IR">
    <meta property="og:type" content="page">
    <meta property="og:description" content="{{ $page->post_meta_array["meta_description"] }}">
    <meta name="twitter:description" content="{{ $page->post_meta_array["meta_description"] }}">
    <meta property="og:title" content="@if(isset($page->post_meta_array["meta_title"])){{ $page->post_meta_array["meta_title"] }}@else{{ $page->title }}@endif">
    <meta property="og:url" content="{{ $page->url }}">
    <meta property="og:site_name" content="{{ get_site_title() }}">
    <meta property="og:updated_time" content="{{ $page->updated_at }}">
    <meta name="twitter:title" content="@if(isset($page->post_meta_array["meta_title"])){{ $page->post_meta_array["meta_title"] }}@else{{ $page->title }}@endif">
@endsection


@section("content")
    <!-- breadcrumb -->
    <div class="breadcrumbSection marginX my-md-3 my-3">
        <div class="breadcrumb_contanier">
            <ul class="d-flex">
                <li class="ml-2"><a href="/" class="font_size_2">تاسیسات اول</a></li>
                <li class="ml-2"><a  class="font_size_2">وبلاگ</a></li>
            </ul>
        </div>
    </div>
    <!-- end breadcrumb -->

        <div class="container">

            <div class="title  mb-4 mx-0">
                <div class="style_header"></div>
                <span>
               مقالات
            </span>
            </div>

            <div class="row">
                {{--<div class="col-12 px-2">
                  <div class="swiper-container blog-slider">
                        <!-- Additional required wrapper -->
                        <div class="swiper-wrapper">
                            <!-- Slides -->

                            @foreach($data as $article)
                                @if($loop->index <= 2)
                                    <div class="swiper-slide">
                                        @include("Front::article_item",["article"=>$article])
                                    </div>
                                @endif
                            @endforeach
                        </div>
                      <div class="swiper-pagination"></div>
                    </div>
                </div>--}}
                @foreach($data as $article)
                    {{--@if($loop->index > 2)--}}
                    <div class="col-lg-6 col-md-6 px-2 ">
                        @include("Front::article_item",["article"=>$article])
                    </div>
                   {{-- @endif--}}
                @endforeach
            </div>
        </div>

@endsection
