@extends('layouts.app',['page_title'=>$article->title,'page_description'=>$article->meta_description,'page_image'=>$article->main_image()]) @section('content')

{{$article->title}}

{!!$article->description!!}
@if(count($article->tags)) @endif {{-- --}}
@if($article->comments_count)

{{$article->comments_count}} التعليقات

    @foreach($article->comments as $comment)
  1. {{$comment->user==null?$comment->adder_name:$comment->user->name}}

    {{$comment->content}}

  2. @endforeach
@endif

شاركنا رأيك

بريدك الالكتروني لن يتم نشره.

@csrf @guest
@endguest
@php $random_articles = \App\Models\Article::orderBy('id','DESC')->with(['categories'=>function($q){$q->first();}])->paginate(5); @endphp @foreach($random_articles as $single_article)
@foreach($single_article->categories as $single_article_category) @if($loop->index<5) {{$single_article_category->title}} @endif @endforeach
@endforeach
@endsection @section('scripts') @endsection