View file WhiteBlack/views/forums/active_topics.blade.php

File size: 1.38Kb
@extends('layout')

@section('title')
    Форум - Список тем {{ $user->login }} (Стр. {{ $page->current }})
@stop

@section('content')

    <h1>Список тем {{ $user->login }}</h1>
<div class="forum-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="/forums">Форум</a></li>
            <li class="breadcrumb-item active">Список тем {{ $user->login }}</li>
        </ol>
    </nav>

    @foreach ($topics as $data)
       <div class="new-themes-post">
        <ul>
            <li><a href="/topics/{{ $data->id }}"><span class="icon"><img src="/themes/WhiteBlack/img/main.png" alt="icon"></span>{{ $data->title }} ({{ $data->count_posts }})</a></li> 
        </ul>

        <div class="forum-pagist">
            <div class="p">{!! $data->pagination() !!}</div>
             <a class="f" href="/forums/{{ $data->forum->id }}">Форум: {{ $data->forum->title }}</a>
            </div>
            <div class="news-bottom">
            <span> Автор: {!! $data->user->getProfile(null, false) !!} / Посл.: {!! $data->lastPost->user->getProfile(null, false) !!} ({{ dateFixed($data->lastPost->created_at) }})</span>
           
            </div>
       
        </div>
    @endforeach

    {!! pagination($page) !!}
    </div>
@stop