@extends('themes.'.config('smartekcms.themes.frontend').'.app', [ 'title' => trans('front.search.search_result_for', [ 'search_word' => $search_word ]), 'meta_description' => trans('front.search.search_result'), 'meta_keywords' => '', 'model_type' => 'searchpage', ]) @section('content')
@if( 0 < $totalcount = count($dynamicPage) + count($corporate) + count($projects) + count($services) + count($blogs) + count($tags) ) {!! trans('front.search.found', [ 'search_word'=>$search_word, 'total_count' => $totalcount ]) !!} @else {!! trans('front.search.not_found', [ 'search_word'=>$search_word ]) !!} @endif
@if(count($dynamicPage)>0)

{{ trans('front.dynamicpage.pages') }} ({{ count($dynamicPage) }})

@foreach($dynamicPage as $page)

{{ $page->title }}

{{ Illuminate\Support\Str::limit(strip_tags(htmlspecialchars_decode($page->text)),120) }}

@endforeach
@endif @if(count($corporate)>0)

{{ trans('front.corporate.corporate') }} ({{ count($corporate) }})

@foreach($corporate as $page)

{{ $page->title }}

{{ Illuminate\Support\Str::limit($page->perex,120) }}

@endforeach
@endif @if(count($projectCategories)>0)

{{ trans('admin.project-category.title') }} ({{ count($projectCategories) }})

@foreach($projectCategories as $page)

{{ $page->title }}

{{ Illuminate\Support\Str::limit($page->perex,120) }}

@endforeach
@endif @if(count($serviceCategories)>0)

{{ trans('admin.service-category.title') }} ({{ count($serviceCategories) }})

@foreach($serviceCategories as $page)

{{ $page->title }}

{{ Illuminate\Support\Str::limit($page->perex,120) }}

@endforeach
@endif @if(count($projects)>0)

{{ trans('front.projects.projects') }} ({{ count($projects) }})

@foreach($projects as $page)

{{ $page->title }}

{{ Illuminate\Support\Str::limit($page->perex,120) }}

@endforeach
@endif @if(count($services)>0)

{{ trans('front.services.services') }} ({{ count($services) }})

@foreach($services as $page)

{{ $page->title }}

{{ Illuminate\Support\Str::limit($page->perex,120) }}

@endforeach
@endif @if(count($tags)>0)

{{ trans('front.blogs.tags') }} ({{ count($tags) }})

@endif @if(count($blogs)>0)

{{ trans('front.blogs.blogs') }} ({{ count($blogs) }})

@foreach($blogs as $page)

{{ $page->title }}

{{ Illuminate\Support\Str::limit($page->perex,120) }}

@endforeach
@endif
{{-- {{ optional($dynamicPage ?? '')->links('layouts.paginate') }}--}}
@endsection @section('js') @parent @endsection