@extends('client.layout.master') @php use App\Models\Translation; $locale = app()->getLocale(); @endphp @section('title', Translation::getValue('blog_title', $locale)) @section('content') @php use App\Models\Translation; $locale = app()->getLocale(); @endphp {{ Translation::getValue('blog_title', $locale) }} {{ Translation::getValue('breadcrumb_home', $locale) }} {{ Translation::getValue('blog_title', $locale) }} @foreach($blogs as $blog) {{-- LEFT IMAGE / RIGHT TEXT --}} @if($blog->position === 'left') {{ $blog->getTranslation('title', $locale) }} {{ Str::limit($blog->getTranslation('description', $locale), 180) }} {{ Translation::getValue('read_more', $locale) }} @else {{-- RIGHT IMAGE / LEFT TEXT --}} {{ $blog->getTranslation('title', $locale) }} {{ Str::limit($blog->getTranslation('description', $locale), 180) }} {{ Translation::getValue('read_more', $locale) }} @endif @endforeach @endsection