@extends('layouts/default') {{-- Page title --}} @section('title') News @parent @stop {{-- page level styles --}} @section('header_styles') @stop {{-- breadcrumb --}} @section('top')
@stop {{-- Page content --}} @section('content')
@if ($popular->count() != 0)

Popular News

@foreach ($popular as $item)
{{ $item->title }} {!! date('d-m-Y', strtotime($item->created_at)) !!}
@endforeach
@endif @if ($hotnews->count() != 0)

Hot News

@foreach ($hotnews as $item)
{{ $item->title }} {!! date('d-m-Y', strtotime($item->created_at)) !!}
@endforeach
@endif @if ($lifestyle->count()) @php $first = $lifestyle->shift(); @endphp

Life Style

@if ($first['image']) image @else @endif

{{ $first['title'] }}

{!! date('d-m-Y', strtotime($first['created_at'])) !!}

{!! $first['content'] !!}

{{-- remove first item from collection --}}
@endif @if ($world->count() != 0)

World News

@foreach ($world as $item)
{{ $item->title }}
{!! date('d-m-Y', strtotime($item->created_at)) !!}
@endforeach
@endif @if ($business->count() != 0) @php $first = $business->shift(); @endphp

Business News

@if ($first->image) image @else @endif

{{ $first['title'] }}

{!! date('d-m-Y', strtotime($first['created_at'])) !!}

{!! $first['content'] !!}

@foreach ($business as $item)
{{ $item->title }}
{!! date('d-m-Y', strtotime($item->created_at)) !!}
@endforeach
@endif @if ($sports->count() != 0) @php $first = $sports->shift(); @endphp

Sports News

@if ($first['image']) image @else @endif

{{ $first['title'] }}

{!! date('d-m-Y', strtotime($first['created_at'])) !!}

{!! $first['content'] !!}

@foreach ($sports as $item)
{{ $item->title }}
{!! date('d-m-Y', strtotime($item->created_at)) !!}
@endforeach
@endif
@stop {{-- page level scripts --}} @section('footer_scripts') @stop