@extends('front.layout.master') @section('title', 'All Blogs | ') @section('meta_tags') @endsection @section('body')

{{ __('Our Blog') }}

{{ __('Tips, guides, news, and inspiration from our team.') }}

@php $viewMode = request('view') === 'list' ? 'list' : 'grid'; @endphp
@if(count($blogs)) @if($viewMode === 'list')
@foreach($blogs as $post)
@if($post->image && file_exists(public_path() . '/images/blog/' . $post->image)) @endif
{{ date('M d, Y', strtotime($post->created_at)) }}·{{ read_time($post->des) }}

{{ $post->heading }}

{{ \Illuminate\Support\Str::limit(strip_tags($post->des), 200) }}

{{ $post->user }} {{ __('Read more') }} →
@endforeach
@else
@foreach($blogs as $post)
@if($post->image && file_exists(public_path() . '/images/blog/' . $post->image)) {{ $post->heading }} @endif
{{ date('M d, Y', strtotime($post->created_at)) }} · {{ read_time($post->des) }}

{{ $post->heading }}

{{ \Illuminate\Support\Str::limit(strip_tags($post->des), 160) }}

{{ $post->user }} {{ views($post)->unique()->count() }} {{ count($post->comments) }}
@endforeach
@endif @if(method_exists($blogs, 'links'))
{!! $blogs->links() !!}
@endif @else

{{ __('No posts yet') }}

{{ __('Check back soon for new articles.') }}

@endif
@endsection