@extends(get_view('index')) @section('title') @endsection @section('header') @endsection @section('content')

{{ Site::site_settings()->site_name ?? env('APP_NAME') ?? '' }}

@if (count(Site::get_main_post_categories()) > 0)

{{ translate('categories') }}

@foreach (Site::get_main_post_categories() as $post_category)
@if ($post_category->image != null)
@else
@endif

{{ $post_category->content->name ?? 'Category Name' }}

Paylaşım Sayısı: {{ $post_category->posts->count() }}

@if (isset($post_category->content->content) && $post_category->content->content != null) @if ( strlen($post_category->content->content) > 255 ) {!! substr($post_category->content->content, 0, 255) !!}... @else {!! $post_category->content->content !!} @endif @endif

{{ translate('read_more') }}

@endforeach
@else @include(get_view('components.errors.post-not-found')) @endif @if ( Site::get_post_place(2)->count() > 0 )

{{ translate('our_picks_for_you') }}

@foreach (Site::get_post_place(2) as $key => $item)
@if ( isset($item) && isset($item->post) && isset($item->post->image) && $item->post->image != null ) {{ $item->post->content->title }} @endif
{{ $item->post->category->content->name ?? '' }}

{{ $item->post->content->title ?? '' }}

{{ $item->post->content->description ?? '' }}

{{ $item->post->created_at->diffForHumans() }}

@endforeach
@endif
{{ translate('search_something') }}
@if ( count(Site::get_post_place(0)) > 0 )
{{ translate('showroom') }} @foreach (Site::get_post_place(0) as $item) @if ( $item->post != null ) {{ $item->post->content->title }} {{ $item->post->created_at->diffForHumans() }} @endif @endforeach
@else
{{ translate('data_not_found') }}
@endif
{{ translate('recent_posts') }} @if ( count(Site::get_latest_posts()) > 0 ) @foreach (Site::get_latest_posts() as $post) {{ $post->content->title }} {{ $post->created_at->diffForHumans() }} @endforeach @else
{{ translate('data_not_found') }}
@endif
@if ( count(Site::get_post_place(0)) > 0 )

{{ translate('showroom') }}

@foreach (Site::get_post_place(0) as $item) @if ( $item->post != null )
@if ($item->post->image != null)
@else
@endif
{{ $item->post->category->content->name }}

{{ $item->post->title }}

@if (isset($item->post->content->content) && $item->post->content->content != null) @if ( strlen($item->post->content->content) > 220 ) {!! substr($item->post->content->content, 0, 220) !!}... @else {!! $item->post->content->content !!} @endif @endif

{{ translate('read_more') }}

@endif @endforeach
@endif
@endsection @section('footer') @endsection