@extends('backEnd.master') @section('title') @lang('common.news') @endsection @push('css') @endpush @section('mainContent')
@lang('common.category')

{{ @$news->newsCategory->title }}

@lang('common.title')

{{ @$news->title }}

@lang('common.tags')
@foreach ($news->tags as $tag) @endforeach

{!! $news->description !!}

@lang('common.comments')

@foreach ($news->newsComments as $comment)
{{-- @if ($comment->user->role_id == 2) {{ @$comment->user->first_name }} @elseif($comment->user->role_id == 3) {{ @$comment->user->parent->first_name }} @else --}} {{ @$comment->user->staff->first_name }} {{-- @endif --}}

{{ @$comment->user->full_name }}

{{ dateconvert($comment->created_at) }}

{{ $comment->user->school->school_name }}

@php $createdBy = $comment->user_id; $authUserId = auth()->user()->id; @endphp @if ($createdBy == $authUserId) @endif

{{ $comment->comment }}

@csrf

{{ __('common.write_your_reply') }}

@foreach ($comment->replies as $reply)
{{-- @if ($reply->user->role_id == 2) {{ @$reply->user->first_name }} @elseif($reply->user->role_id == 3) {{ @$reply->user->parent->first_name }} @else --}} {{-- @endif --}}

{{ @$reply->user->full_name }}

{{ dateconvert($reply->created_at) }}
@php $createdBy = $reply->user_id; $authUserId = auth()->user()->id; @endphp @if ($createdBy == $authUserId) @endif

{{ $reply->reply }}

@endforeach
@endforeach
@csrf

{{ __('common.leave_a_comment') }}

@endsection @include('backEnd.partials.data_table_js')