@extends('site.layout.layout') @section('url'){{Request::fullUrl()}}@stop @section('css') @endsection @section('content') @php $lang = app()->getLocale(); $catMap = [ 1 => 'cat-field', 2 => 'cat-report', 3 => 'cat-report', 4 => 'cat-report', 5 => 'cat-story', ]; $catClass = $catMap[$news->category_id] ?? 'cat-field'; $catText = $news->category["name_$lang"] ?? ''; $title = $news->{"title_$lang"}; $details = $news->{"details_$lang"}; $source = $news->{"source_$lang"}; $date = $news->news_date ? \Carbon\Carbon::parse($news->news_date)->translatedFormat('j F Y') : ''; // استخراج أول فقرة كمقدمة $stripped = strip_tags($details); $firstDot = mb_strpos($stripped, '.'); $lead = $firstDot !== false ? mb_substr($stripped, 0, $firstDot + 1) : mb_substr($stripped, 0, 200); // باقي المحتوى (HTML) $body = $details; @endphp
{{-- شريط تقدم القراءة --}}
{{-- ── هيرو سينمائي ── --}}
{{ $title }}
{{ $catText }} {{ $date }}

{{ $title }}

{{-- ── تخطيط المقالة ── --}}
{{-- العمود الرئيسي --}}
@if(false)

{!! $lead !!}

@endif
{!! $body !!}
@if($source)
{{ trans('app.source') }}: {{ $source }}
@endif
{{-- تذييل: مشاركة --}}
{{-- الشريط الجانبي --}}
{{-- ── اقرأ أيضاً ── --}} @if($moreNews->count())
{{ $lang == 'ar' ? 'اقرأ أيضاً' : 'Read Also' }}
{{ $lang == 'ar' ? 'كل الأخبار ←' : 'All News →' }}
@foreach($moreNews as $more) @php $mCatClass = $catMap[$more->category_id] ?? 'cat-field'; $mCatText = $more->category["name_$lang"] ?? ''; $mTitle = $more->{"title_$lang"}; $mDate = $more->news_date ? \Carbon\Carbon::parse($more->news_date)->translatedFormat('j F Y') : ''; @endphp {{ $mCatText }}
{{ $mTitle }}
{{ $mDate }}
@endforeach
@endif
@endsection @section('js') @endsection