{{-- resources/views/category_articles.blade.php --}} @extends('layouts.app') @section('content') @include('partials.navbar') @include('articles.partials.home-css') {{--
--}}{{ $article->category ? $article->category->name : ' ' }}
{!! Str::words(strip_tags($article->description), 150, '...') !!}
@if ($article->writer_photo) @php $path = $article->writer_photo; // Old photos (public/uploads/...) if (str_starts_with($path, 'uploads/')) { $photoUrl = asset($path); } // New photos (storage/app/public/...) else { $photoUrl = asset('storage/' . $path); } @endphpImage Credit: {{ $article->credit }}
@endif{!! $article->content !!}
This is an opinion piece. The views expressed in this article are those of just the author.