@extends('layouts.client') @push('meta_title') {{ __('Home') }} @endpush @push('styles') @endpush @section('content') @if(count($ads) > 0) @foreach ($ads as $ad) sponsor {{ $ad->title }} {{ Str::of($ad->excerpt)->limit(100) }} Learn more @endforeach {{-- Navigation --}} @endif @foreach ($categories as $category) {{ $category->name }} @endforeach @if(count($banners) > 0) @foreach ($banners as $banner) {{ $banner->title }} {{ Str::of($banner->excerpt)->limit(150) }} @endforeach {{-- Navigation --}} @endif @if (count($news) > 0) Recent posts @foreach($news->slice(0, 8) as $value) @php if ($value->meta_link != NULL) { $permalink = $value->meta_link; $redirect_attribute = 'target="_blank" rel="noopener noreferrer"'; } else { $permalink = route('news.view', $value->permalink); $redirect_attribute = NUll; } @endphp {{ $value->category->name }} {{ Str::of($value->title)->limit(55) }} {{ Str::of($value->excerpt)->limit(100) }} By: {{ $value->author }} {{ $value->date_format }} @endforeach @if ($news->total() >= 9) See more posts @endif @endif @if (count($featured_news) > 0) Featured destinations for beach lovers Recommended based on your activity @foreach ($featured_news->slice(0, 4) as $featured) {{ $featured->location }} @endforeach @endif @endsection @push('scripts') @endpush
{{ Str::of($value->excerpt)->limit(100) }}
Recommended based on your activity