@extends('main') @section('styles') @endsection @section('content')

{!! __('The search') !!}

@if ($items->count() > 0 )
{{ __('Search Results For') }} "{{ Request::get('s') }}" {{ __('Results No') }} ( {{ $items->total() }})

@foreach ($items as $key => $item) @php $section = Optional($item->category)->section; if (in_array($section, listItemsWithCategory())) { $url = route('show.'.$section.'.page.category',[$item->category->slug,$item->slug]); } else { $url = route('show.'.$section.'.page',[$item->slug]); } @endphp
{!! $item->title !!}

{!! Optional($item->category)->title !!}

{!! strip_tags(Str::words($item->content, 70, ' ...')) !!}

{!! __('Read more') !!}
@endforeach
{{ $items->links() }}
@else
{{ __('Search') }}
{{ __('No Results') }}
@endif
@endsection @section('scripts') @endsection