@extends('layouts.app') @section('title',$Title) @section('content')

{{$Title}}

{{$singleRecord->short_description ?? ""}}

{{$singleRecord->title ??
{!! $singleRecord->description ?? "" !!}
Articles

View Articles

@foreach($articles as $index => $article) @if($loop->index < 2) {{-- FIRST TWO ARTICLES SIDE BY SIDE --}}
{{ $article->title }}
{{ Str::words($article->title ?? '', 10, '...') }}

{{ $article->categorydata->name ?? 'General' }}
@else {{-- REMAINING ARTICLES BELOW FULL WIDTH --}} @if($loop->index == 2) {{-- START NEW ROW SECTION FOR REMAINING --}}
@endif
{{ $article->title }}
{{ Str::words($article->title ?? '', 6, '...') }}
  • {{ $article->categorydata->name ?? 'General' }}
  • {{ $article->read_time ?? '5 mins read' }}

@if($loop->last)
@endif @endif @endforeach
@endsection