Размер файла: 1.54Kb
@extends('layout')
@section('title')
{{ __('index.blogs') }} - {{ __('blogs.title_active_articles', ['user' => $user->login]) }} ({{ __('main.page_num', ['page' => $blogs->currentPage()]) }})
@stop
@section('header')
<h1>{{ __('blogs.title_active_articles', ['user' => $user->login]) }}</h1>
@stop
@section('breadcrumb')
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="/blogs">{{ __('index.blogs') }}</a></li>
<li class="breadcrumb-item active">{{ __('blogs.title_active_articles', ['user' => $user->login]) }}</li>
</ol>
</nav>
@stop
@section('content')
@if ($blogs->isNotEmpty())
@foreach ($blogs as $data)
<div class="b">
<i class="fa fa-pencil-alt"></i>
<b><a href="/articles/{{ $data->id }}">{{ $data->title }}</a></b> ({!! formatNum($data->rating) !!})
</div>
<div>{{ __('main.author') }}: {!! $data->user->getProfile() !!} ({{ dateFixed($data->created_at) }})<br>
<i class="fa fa-comment"></i> <a href="/articles/comments/{{ $data->id }}">{{ __('main.comments') }}</a> ({{ $data->count_comments }})
<a href="/articles/end/{{ $data->id }}">»</a>
</div>
@endforeach
<br>{{ __('blogs.total_articles') }}: <b>{{ $blogs->total() }}</b><br>
@else
{!! showError(__('blogs.empty_articles')) !!}
@endif
{{ $blogs->links('app/_paginator') }}
@stop