@if(count($blog)>0)
@endif
@foreach($blog[0] as $key=>$item)
@if($key % 2 == 0 && $key!=0)
@endforeach
@if(isset($blog[1]) && count($blog[1])>0)
@php
$ad_blog_left = DB::table('advertisement')->where('status', '1')->where('position','blog_left')->first();
@endphp
@if($ad_blog_left)
@else
@endif
@endif
Posted {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}
{{ $item->blog_title }}
{!! substr($item->description,0,120) !!}...
@foreach($blog[1] as $key=>$item)
@endforeach
@endif
@if(isset($blog[2]) && count($blog[2])>0)
Posted {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}
{{ $item->blog_title }}
{!! substr($item->description,0,120) !!}...
@foreach($blog[2] as $key=>$item)
@if($key % 2 == 0 || $key==0)
@endforeach
@endif
@endif
@if(count($blog)==0)
@php
$ad_blog_right = DB::table('advertisement')->where('status', '1')->where('position','blog_right')->first();
@endphp
@if($ad_blog_right)
@else
@endif
@endif
Posted {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}
{{ $item->blog_title }}
{!! substr($item->description,0,120) !!}...