@extends('backEnd.master') @section('title') @lang('common.news') @endsection @push('css') @endpush @section('mainContent') @lang('common.news_details') @lang('common.dashboard') @lang('common.news') @lang('common.news_details') @lang('common.category') {{ @$news->newsCategory->title }} @lang('common.title') {{ @$news->title }} @lang('common.tags') @foreach ($news->tags as $tag) {{$tag->title}} @endforeach {!! $news->description !!} @lang('common.comments') @foreach ($news->newsComments as $comment) {{-- @if ($comment->user->role_id == 2) @elseif($comment->user->role_id == 3) @else --}} {{-- @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 }} reply @lang('common.edit_comment') × {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'user-news-comment.update', 'method' => 'POST']) }} @lang('common.comment') * {!! $comment->comment !!} {{ Form::close() }} @lang('common.delete_comment') × @lang('common.are_you_sure_to_delete') @lang('common.cancel') @lang('common.delete') @csrf {{ __('common.write_your_reply') }} {{ __('common.submit') }} @foreach ($comment->replies as $reply) {{-- @if ($reply->user->role_id == 2) @elseif($reply->user->role_id == 3) @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 }} @lang('common.edit_reply') × {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'user-news-comment-reply.update', 'method' => 'POST']) }} @lang('common.comment') * {!! $reply->reply !!} {{ Form::close() }} @lang('common.delete_reply') × @lang('common.are_you_sure_to_delete') @lang('common.cancel') @lang('common.delete') @endforeach @endforeach @csrf {{ __('common.leave_a_comment') }} {{ __('common.comment') }} @endsection @include('backEnd.partials.data_table_js')
{!! $news->description !!}
{{ $comment->user->school->school_name }}
{{ $comment->comment }}
{{ $reply->reply }}
{{ @$reply->user->full_name }}
{{ $reply->reply }}
@lang('common.edit_reply')
@lang('common.delete_reply')
@lang('common.are_you_sure_to_delete')