No articles found
Check back later for updates.
@php
use App\Models\Backend\ContentArticle;
use App\Models\Backend\Ref;
$code = request()->query('id');
$detailArticle = $code ? ContentArticle::with('translations')
->where('article_code', $code)
->where('article_status', 'ACTIVE')
->first() : null;
@endphp
@if($detailArticle)
@php
$t = $detailArticle->translations->first();
$title = $t?->article_translation_title ?? 'Untitled';
$content = $t?->article_translation_content ?? '';
$catDescr = Ref::where('cat', 'ARTICLE_CAT')->where('code', $detailArticle->article_category)->value('descr') ?? $detailArticle->article_category;
$date = $detailArticle->article_date ? \Carbon\Carbon::parse($detailArticle->article_date)->format('d M Y') : '';
$isFullWidth = true;
$heroImg = $detailArticle->article_image ? image_url($detailArticle->article_image) : '/assets/redd-plus/about_hero_bg.png';
$subtitle = $t?->article_translation_descr ?? '';
@endphp
@if($isFullWidth)
@if(!str_contains($content, ' {{ $subtitle }}{{ $title }}
@if($subtitle)
Latest updates, publications and news from REDD Plus Malaysia.
Check back later for updates.