View file RdesignNew/views/loads/new_comments.blade.php

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

@section('title')
    Загрузки - Новые комментарии (Стр. {{ $page->current }})
@stop

@section('content')

    <h1>Новые комментарии</h1>

    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
            <li class="breadcrumb-item"><a href="/loads">Загрузки</a></li>
            <li class="breadcrumb-item active">Новые комментарии</li>
        </ol>
    </nav>

    @if ($comments->isNotEmpty())
        @foreach ($comments as $data)
            <div class="new-comment">
                <div class="new-comment-nav">
                    
                    <a class="new-comment-link" href="/downs/comment/{{ $data->relate_id }}/{{ $data->id }}"><i class="fa fa-comment"></i>{{ $data->title }} <span>({{ $data->count_comments }})</span></a>

                    <div class="float-right">
                        @if (isAdmin())
                            <a class="del" href="#" onclick="return deleteComment(this)" data-rid="{{ $data->relate_id }}" data-id="{{ $data->id }}" data-type="{{ App\Models\Down::class }}" data-token="{{ $_SESSION['token'] }}" data-toggle="tooltip" title="Удалить"><i class="fa fa-times text-muted"></i></a>
                        @endif
                    </div>
                </div>

                <div class="new-comment-comment-text">
                    {!! bbCode($data->text) !!}
                </div>
                   <div class="new-comment-bottom">
                   <span>Написал: {!! profile($data->user) !!} ({{ dateFixed($data->created_at) }})</span>
                   
                   <span>@if (isAdmin())
                       ({{ $data->brow }}, {{ $data->ip }})
                    @endif
                    </span>
                    
                    
                </div>
            </div>
        @endforeach

        {!! pagination($page) !!}
    @else
        {!! showError('Комментарии не найдены!') !!}
    @endif
@stop