@extends('user-front.layout') @section('tab-title') {{ $keywords['Home'] ?? 'Home' }} @endsection @php Config::set('app.timezone', $userBs->timezoneinfo->timezone ?? ''); @endphp @section('meta-description', !empty($userSeo) ? $userSeo->home_meta_description : '') @section('meta-keywords', !empty($userSeo) ? $userSeo->home_meta_keywords : '') @section('content')
@if (isset($home_sections->slider_posts) && $home_sections->slider_posts == 1)
@foreach ($sliders as $slider)
image
{{ $slider->bcategory->name }}

{{ strlen($slider->title) > 30 ? mb_substr($slider->title, 0, 30, 'utf-8') . '...' : $slider->title }}

@endforeach
@endif @if (isset($home_sections->category_section) && $home_sections->category_section == 1)
@foreach ($bcategories as $bcategory)
{{ $bcategory->name }}
{{ $bcategory->name }}
@endforeach
@endif
@if (isset($home_sections->featured_section) && $home_sections->featured_section == 1)

{{ @$home_text->featured_section_title }}

@foreach ($featuredBlogs as $blog)
image
{{ $blog->bcategory->name }}

{{ strlen($blog->title) > 27 ? mb_substr($blog->title, 0, 27, 'utf-8') . '...' : $blog->title }}

@endforeach
@endif @if (isset($home_sections->latest_posts) && $home_sections->latest_posts == 1)

{{ @$home_text->latest_item_section_title }}

@foreach ($latestPosts as $blog) @auth('customer') @php $postBookmarked = 0; foreach ($bookmarkPosts as $bookmarkPost) { if ($bookmarkPost->post_id == $blog->id) { $postBookmarked = 1; break; } } @endphp @endauth
image

{{ strlen($blog->title) > 27 ? mb_substr($blog->title, 0, 27, 'utf-8') . '...' : $blog->title }}

@endforeach
@endif
@if (isset($home_sections->gallery) && $home_sections->gallery == 1)

{{ @$home_text->causes_section_title }}

@foreach ($galleryItems as $item)
image
@if ($item->item_type == 'video') @else @endif

{{ $item->title }}

@endforeach
@endif @if (isset($home_sections->featured_category_posts) && $home_sections->featured_category_posts == 1)
@if (count($featPostCategories) == 0)

{{ $keywords['No_Featured_Post_Category_Found'] ?? __('No Featured Post Category Found !') }}

@else @php $langId = $userCurrentLang->id; @endphp @foreach ($featPostCategories as $featPostCategory)

{{ $featPostCategory->name }}

@php $featCatPosts = DB::table('user_blogs') ->where('language_id', '=', $langId) ->where('category_id', '=', $featPostCategory->id) ->where('user_id', $user->id) ->orderBy('serial_number', 'ASC') ->limit(3) ->get(); @endphp @if (count($featCatPosts) == 0)
{{ $keywords['No_Post_Found_Of_This_Category'] ?? __('No Post Found Of This Category !') }}
@else
@foreach ($featCatPosts as $featCatPost) @auth('customer') @php $postBookmarked = 0; foreach ($bookmarkPosts as $bookmarkPost) { if ($bookmarkPost->post_id == $featCatPost->id) { $postBookmarked = 1; break; } } @endphp @endauth
image

{{ strlen($featCatPost->title) > 30 ? mb_substr($featCatPost->title, 0, 30, 'utf-8') . '...' : $featCatPost->title }}

@endforeach
@endif @endforeach @endif
@endif
@endsection