@extends('layouts.app') @section('content') {{-- @php print_r($blog); exit; @endphp --}} @if (App::getLocale() == 'tr')
{{-- --}}
{{-- Haberler --}}

Blog

{{-- @php print_r($news2[0]); @endphp --}}
@foreach ($blog2 as $vitrin) @php $thumb_blog = '/uploads/thumb_'.$vitrin['image_path']; if(!file_exists(public_path('uploads/thumb_'.$vitrin['image_path']))){ $thumb_blog = '/uploads/'.$vitrin['image_path']; }; @endphp
{{ App::getLocale() == 'tr' ? $vitrin->title : $vitrin->title_en }}

{{ substr(str_replace(' ', '', strip_tags(App::getLocale() == 'tr' ? $vitrin->content : $vitrin->content_en)), 0, 100) }}{{ '...' }}

Daha Fazla
@endforeach
@foreach ($blog as $key => $newsItem) @php $thumb_blog = '/uploads/thumb_'.$newsItem['image_path']; if(!file_exists(public_path('uploads/thumb_'.$newsItem['image_path']))){ $thumb_blog = '/uploads/'.$newsItem['image_path']; }; @endphp @endforeach
{{ $blog->onEachSide(0)->links() }}
@else
{{-- News --}}

News

@endif @endsection