@extends('front.layout.app') @section('main_content') @if($setting_data->news_ticker_status == "Show")
{{ LATEST_NEWS }}
    @php $i=0; @endphp @foreach($post_data as $item) @php $i++; @endphp @if($i>$setting_data->news_ticker_total) @break @endif
  • {{ $item->post_title }}
  • @endforeach
@endif
@php $i=0; @endphp @foreach($post_data as $item) @php $i++; @endphp @if($i>1) @break @endif
{{ $item->rSubCategory->sub_category_name }}

{{ $item->post_title }}

@if($item->author_id==0) @php $user_data = \App\Models\Admin::where('id',$item->admin_id)->first(); @endphp @else @php $user_data = \App\Models\Author::where('id',$item->author_id)->first(); @endphp @endif {{ $user_data->name }}
@php $ts = strtotime($item->created_at); $created_date = date('d F, Y',$ts); @endphp {{ $created_date }}
@endforeach
@php $i=0; @endphp @foreach($post_data as $item) @php $i++; @endphp @if($i==1) @continue @endif @if($i>3) @break @endif
{{ $item->rSubCategory->sub_category_name }}

{{ $item->post_title }}

@if($item->author_id==0) @php $user_data = \App\Models\Admin::where('id',$item->admin_id)->first(); @endphp @else @php $user_data = \App\Models\Author::where('id',$item->author_id)->first(); @endphp @endif {{ $user_data->name }}
@php $ts = strtotime($item->created_at); $created_date = date('d F, Y',$ts); @endphp {{ $created_date }}
@endforeach
@if($home_ad_data->above_search_ad_status == 'Show')
@if($home_ad_data->above_search_ad_url == '') @else @endif
@endif
@csrf
@foreach($sub_category_data as $item) @if(count($item->rPost)==0) @continue @endif

{{ $item->sub_category_name }}

@foreach($item->rPost as $single) @if($loop->iteration == 2) @break @endif
{{ $item->sub_category_name }}

{{ $single->post_title }}

@if($single->author_id==0) @php $user_data = \App\Models\Admin::where('id',$single->admin_id)->first(); @endphp @else @php $user_data = \App\Models\Author::where('id',$single->author_id)->first(); @endphp @endif {{ $user_data->name }}
@php $ts = strtotime($single->created_at); $created_date = date('d F, Y',$ts); @endphp {{ $created_date }}
{!! $single->post_detail !!}
@endforeach
@foreach($item->rPost as $single) @if($loop->iteration == 1) @continue @endif @if($loop->iteration == 6) @break @endif
{{ $item->sub_category_name }}

{{ $single->post_title }}

@if($single->author_id==0) @php $user_data = \App\Models\Admin::where('id',$single->admin_id)->first(); @endphp @else @php $user_data = \App\Models\Author::where('id',$single->author_id)->first(); @endphp @endif {{ $user_data->name }}
@php $ts = strtotime($single->created_at); $created_date = date('d F, Y',$ts); @endphp {{ $created_date }}
@endforeach
@endforeach
@if($setting_data->video_status == 'Show')

{{ VIDEOS }}

@endif @if($home_ad_data->above_footer_ad_status == 'Show')
@if($home_ad_data->above_footer_ad_url == '') @else @endif
@endif @endsection