Просмотр файла resources/views/forums/active_posts.blade.php

Размер файла: 1.83Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('index.forums') . ' - ' . __('forums.title_active_posts', ['user' => $user->getName()]) . ' (' . __('main.page_num', ['page' => $posts->currentPage()]) . ')')
  4.  
  5. @section('header')
  6. <h1>{{ __('forums.title_active_posts', ['user' => $user->getName()]) }}</h1>
  7. @stop
  8.  
  9. @section('breadcrumb')
  10. <nav>
  11. <ol class="breadcrumb">
  12. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  13. <li class="breadcrumb-item"><a href="/forums">{{ __('index.forums') }}</a></li>
  14. <li class="breadcrumb-item active">{{ __('forums.title_active_posts', ['user' => $user->getName()]) }}</li>
  15. </ol>
  16. </nav>
  17. @stop
  18.  
  19. @section('content')
  20. @if ($posts->isNotEmpty())
  21. @foreach ($posts as $data)
  22. <div class="section mb-3 shadow">
  23. <i class="fa fa-file-alt"></i> <b><a href="/topics/{{ $data->topic_id }}/{{ $data->id }}">{{ $data->topic->title }}</a></b>
  24.  
  25. @if (isAdmin())
  26. <a href="#" class="float-right" onclick="return deletePost(this)" data-tid="{{ $data->id }}" data-token="{{ $_SESSION['token'] }}" data-toggle="tooltip" title="{{ __('main.delete') }}"><i class="fa fa-times"></i></a>
  27. @endif
  28.  
  29. <div class="section-message">
  30. {!! bbCode($data->text) !!}<br>
  31.  
  32. {{ __('main.posted') }}: {{ $data->user->getName() }}
  33. <small>({{ dateFixed($data->created_at) }})</small>
  34.  
  35. @if (isAdmin())
  36. <div class="small text-muted font-italic mt-2">({{ $data->brow }}, {{ $data->ip }})</div>
  37. @endif
  38. </div>
  39. </div>
  40. @endforeach
  41. @else
  42. {!! showError(__('forums.posts_not_created')) !!}
  43. @endif
  44.  
  45. {{ $posts->links() }}
  46. @stop