View file WhiteBlack/views/news/allcomments.blade.php

File size: 1.5Kb
  1. @extends('layout')
  2.  
  3. @section('title')
  4. {{ trans('news.last_comments') }}
  5. @stop
  6.  
  7. @section('content')
  8.  
  9. <h1>{{ trans('news.last_comments') }}</h1>
  10. <div class="news-wrapp">
  11. <nav>
  12. <ol class="breadcrumb">
  13. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  14. <li class="breadcrumb-item"><a href="/news">{{ trans('news.header') }}</a></li>
  15. <li class="breadcrumb-item active">{{ trans('news.last_comments') }}</li>
  16. </ol>
  17. </nav>
  18.  
  19. @if ($comments->isNotEmpty())
  20. @foreach ($comments as $data)
  21. <div class="news">
  22. <ul>
  23. <li><a href="/news/comment/{{ $data->relate_id }}/{{ $data->id }}"><span class="icon"><i class="fa fa-comment"></i></span> {{ $data->title }} ({{ $data->count_comments }})</a>
  24. </li>
  25. </ul>
  26.  
  27. <div class="news-text">
  28. {!! bbCode($data->text) !!}
  29. </div>
  30. <div class="news-bottom">
  31. <span>{{ trans('news.posted_by') }}: {!! $data->user->getProfile() !!} <br>({{ dateFixed($data->created_at) }})</span>
  32.  
  33. @if (isAdmin())
  34. <span class="data">({{ $data->brow }}, {{ $data->ip }})</span>
  35. @endif
  36. </div>
  37. </div>
  38. @endforeach
  39. {!! pagination($page) !!}
  40. @else
  41. {!! showError(trans('news.empty_comments')) !!}
  42. @endif
  43. </div>
  44. @stop