@extends('mobile_mainlayout_landing')


@section('content')

		<div class="event-section section mt-4 padbtm_32">
            <div class="container">
                <div class="row pad_16">
                    <div class="col-12 max-mb-30" data-aos="fade-up">
                        <div class="banner_container" style="border-radius:15px;">
			              <img src="https://tigeradmin.testing.co.tz{{$page->featured_image}}" alt="Snow" style="width:100%;border-radius:15px;">
			              
			              <div class="top-left">
			              	<h2 class="title bold_text font_24 white">Blog</h2>
			              </div>
			        	</div>
                    </div>
                </div>
            </div>
        </div>


        <!-- Jobs Section Start -->
        <div class="section section-padding-bottom fix">
            <div class="container">
                <!-- Jobs Wrapper Start -->
                <div class="row row-cols-1 pad_16">
                    
                    @forelse($press as $post)
                    
                	<!-- Press Start -->
                    <div class="blog-3 col " data-aos="fade-up">
                        <div class="row row-cols-lg-2 row-cols-1 max-mb-n30">
                            <div class="col-lg-4 max-mb-30">
                                <div class="thumbnail">
                                    <a href="/home/press/{{$post->id}}" class="image"><img src="https://tigeradmin.testing.co.tz{{$post->image}}" alt="Image" 
                                    style="    object-fit: cover;height: 200px"></a>
                                </div>
                            </div>
                            <div class="col-lg-8 max-mb-30">
                                <div class="info pt-0">
                                    @php
                                    $title = json_decode($post->title);
                                    $content = json_decode($post->content);
                                    
                                    @endphp
                                    <h3 class="title gold font_24"><a href="/home/press/{{$post->id}}">
                                       {{$title->en}}</a></h3>
                                    <ul class="meta">
                                        <li class="white"><i class="far fa-calendar white"></i>{{$post->created_at}}</li>
                                    </ul>
                                    <div class="desc urban white">
                                        @php
                                        $descr = substr(html_entity_decode($content->en), 3, 86);
                                        $descript = $descr.'...';
                                        @endphp
                                        <p>{!!$descript!!}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Press End -->
                    
                    @empty
                    
                    @endforelse


                </div>
            </div>
        </div>




@endsection