@extends('front.layouts.main')
@section('title', getSiteName() . ' | ' . request()->translations['static']['search'])
@section('preloader')
@endsection
@section('preloader-sclass', 'section--all-news')
@section('content')
{{ request()->translations['static']['search_title'] }} "{{ request()->search }}"
@foreach($posts as $post)
@if($post->preview_type)
@else
@if($post->image)
@if($post->position)
@php($img = resizeImage('news/' . $post->id . '/', $post->image, 306, 246, 'resize'))
@php($sizes = getImageRealSize('news/' . $post->id . '/', $post->image, 306, 246, 'resize'))
@else
@php($img = resizeImage('news/' . $post->id . '/', $post->image, 306, 382, 'resize'))
@php($sizes = getImageRealSize('news/' . $post->id . '/', $post->image, 306, 382, 'resize'))
@endif
@endif
@endif
{!! buildTags(!empty($post->getNewsInfoByLocale('en')->tags) ? $post->getNewsInfoByLocale('en')->tags : '') !!}
{{ $translate[$post->id]['title'] }}
@endforeach
@endsection