@if($listlastblog->isNotEmpty()) @php $latestBlog = $listlastblog->firstWhere('show_in_banner', 1); @endphp @if($latestBlog)

{{ $latestBlog->title }}

By|
{{ $latestBlog->author }}
|
{{ $latestBlog->created_at->format('Y-m-d') }}
@endif @endif
    @if ($listlastblog->isNotEmpty()) @php $previousBlogs = $listlastblog->skip(1); @endphp @foreach ($previousBlogs as $listallblog)
  • {{ $listallblog->title }}

  • @endforeach @else

    No blogs found.

    @endif

Trending News

@if($listlastblog->isNotEmpty()) @php $trendingBlogs = $listlastblog->where('show_in_Trending', 1)->take(4); @endphp @foreach ($trendingBlogs as $blog)

{{ $blog->title }}

@endforeach @endif
@php $cyberAttackFound = false; @endphp @foreach ($category as $index => $projectCategory) @if (strtolower($projectCategory->category) === "cyberattack") @php $cyberAttackFound = true; @endphp

{{ $projectCategory->title }}

@break @endif @endforeach
@if ($cyberAttackFound) @php $cyberAttackBlogs = $listlastblog->filter(function($blog) { return strtolower($blog->category) === "21"; })->take(3); @endphp @if ($cyberAttackBlogs->count() > 0) @foreach ($cyberAttackBlogs as $blog) @endforeach @else

No blogs found in the Cyber Attack category.

@endif @else

No blogs found in the Cyber Attack category.

@endif
@php $cyberAttackFound = false; @endphp @foreach ($category as $index => $projectCategory) @if (strtolower($projectCategory->category) === "reports") @php $cyberAttackFound = true; @endphp

{{ $projectCategory->category }}

@break @endif @endforeach
@if ($cyberAttackFound) @php $cyberAttackBlogs = $listlastblog->filter(function($blog) { return strtolower($blog->category) === "25"; })->take(3); @endphp @if ($cyberAttackBlogs->count() > 0) @foreach ($cyberAttackBlogs as $blog) @endforeach @else

No blogs found in the reports category.

@endif @else

No blogs found in the reports category.

@endif

Categories

Popular Posts

@if ($listlastblog->isNotEmpty()) @foreach ($listlastblog->take(8) as $listallblog)

{{ $listallblog->title }}

@endforeach @else

No blogs found.

@endif
@php $cyberAttackFound = false; @endphp @foreach ($category as $index => $projectCategory) @if (strtolower($projectCategory->category) === "newintechnology") @php $cyberAttackFound = true; @endphp

{{ $projectCategory->title }}

@break @endif @endforeach
@if ($cyberAttackFound) @php $cyberAttackBlogs = $listlastblog->filter(function($blog) { return strtolower($blog->category) === "26"; })->take(3); @endphp @if ($cyberAttackBlogs->count() > 0) @foreach ($cyberAttackBlogs as $blog) @endforeach @else

No blogs found in the reports category.

@endif @else

No blogs found in the reports category.

@endif