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

Journals Of Case Reports

Read Journals Of Case Reports

@foreach($articles as $article)
{{ $article->categorydata->name ?? 'General' }}
  • {{ $article->publication_date ? \Carbon\Carbon::parse($article->publication_date)->format('M d, Y') : '' }}

  • {{-- simple read-time estimate based on full_text (or abstract) --}} @php $words = str_word_count(strip_tags($article->full_text ?? $article->abstract ?? '')); $minutes = max(1, (int) ceil($words / 200)); // 200 wpm @endphp

    {{ $minutes }} mins read

{{ Str::words($article->title ?? '', 6, '...') }}

{{ Str::limit($article->abstract ?? strip_tags($article->full_text ?? ''), 120) }}

@endforeach
Blogs

Real-Time Updates That Matter

@php $main = $blogList->get(0); @endphp
@foreach($blogList->slice(3) as $blog)
...
@if($blog->category) {{ $blog->category->name }} @endif
  • 6 mins readTime

...

{{ $blog->title }}

{{ \Illuminate\Support\Str::limit(strip_tags($blog->short_description ?? $blog->description), 150) }}

{{ $blog->title }} {{ $blog->admin ? $blog->admin->name : 'Admin' }}
  • {{ $blog->created_at ? \Carbon\Carbon::parse($blog->created_at)->format('M d, Y') : '' }}

@endforeach
{{-- Use controller $Title --}}
{{ __('Current Issue') }}

View Current Issue

{{-- left column kept unchanged --}}
Build your wealth through knowledge.
  • magzin

    Apple Podcast

  • magzin

    Spotify

  • magzin

    SoundCloud

Listen, Learn, and be Inspired
Discover more
{{-- Right column: dynamic items from $articles --}}
@if($articles && $articles->count()) @foreach($articles->take(5) as $article)
{{ Str::limit($article->title, 70) }}

@php $date = $article->publication_date ?: $article->created_at; @endphp {{ \Carbon\Carbon::parse($date)->format('M d, Y') }}

{{-- Replaced audio controls with category display --}}
{{-- Category badge / label --}}
{{-- use relation 'categorydata' from Article model --}} {{ optional($article->categorydata)->name ?? 'Uncategorized' }}
@endforeach @else {{-- fallback placeholders --}} @for($i=0;$i<5;$i++) @endfor @endif
Previous Issue

View Previous Issue

@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