Размер файла: 1.5Kb
@extends('layout')
@section('title')
{{ trans('news.last_comments') }}
@stop
@section('content')
<h1>{{ trans('news.last_comments') }}</h1>
<div class="news-wrapp">
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="/news">{{ trans('news.header') }}</a></li>
<li class="breadcrumb-item active">{{ trans('news.last_comments') }}</li>
</ol>
</nav>
<div class="news-block">
@if ($comments->isNotEmpty())
@foreach ($comments as $data)
<div class="news">
<ul>
<li><a href="/news/comment/{{ $data->relate_id }}/{{ $data->id }}"> {{ $data->title }} {{ $data->count_comments }}</a>
</li>
</ul>
<div class="news-text">
{!! bbCode($data->text) !!}
</div>
<div class="news-bottom">
<span class="k">{{ trans('news.posted_by') }}: {!! $data->user->getProfile() !!} <br>({{ dateFixed($data->created_at) }})</span>
<!--@if (isAdmin())
<span class="data">({{ $data->brow }}, {{ $data->ip }})</span>
@endif-->
</div>
</div>
@endforeach
</div>
{!! pagination($page) !!}
@else
{!! showError(trans('news.empty_comments')) !!}
@endif
</div>
@stop