Просмотр файла resources/views/admin/votes/history.blade.php

Размер файла: 2.14Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('votes.archive_votes'))
  4.  
  5. @section('breadcrumb')
  6. <nav>
  7. <ol class="breadcrumb">
  8. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  9. <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
  10. <li class="breadcrumb-item"><a href="/admin/votes">{{ __('index.votes') }}</a></li>
  11. <li class="breadcrumb-item active">{{ __('votes.archive_votes') }}</li>
  12. </ol>
  13. </nav>
  14. @stop
  15.  
  16. @section('content')
  17. @if ($votes->isNotEmpty())
  18. @foreach ($votes as $vote)
  19. <div class="section mb-3 shadow">
  20. <div class="section-title">
  21. <i class="fa fa-chart-bar"></i>
  22. <a href="/votes/history/{{ $vote['id'] }}">{{ $vote->title }}</a>
  23.  
  24. <div class="float-right">
  25. <a href="/admin/votes/edit/{{ $vote->id }}" data-toggle="tooltip" title="{{ __('main.edit') }}"><i class="fa fa-pencil-alt text-muted"></i></a>
  26. <a href="/admin/votes/close/{{ $vote->id }}?token={{ $_SESSION['token'] }}" data-toggle="tooltip" title="{{ __('main.open') }}"><i class="fa fa-unlock text-muted"></i></a>
  27.  
  28. @if (isAdmin('boss'))
  29. <a href="/admin/votes/delete/{{ $vote->id }}?token={{ $_SESSION['token'] }}" onclick="return confirm('{{ __('votes.confirm_delete') }}')" data-toggle="tooltip" title="{{ __('main.delete') }}"><i class="fa fa-times text-muted"></i></a>
  30. @endif
  31. </div>
  32. </div>
  33.  
  34. <div class="section-body">
  35. @if ($vote->topic->id)
  36. {{ __('forums.topic') }}: <a href="/topics/{{ $vote->topic->id }}">{{ $vote->topic->title }}</a><br>
  37. @endif
  38.  
  39. {{ __('main.created') }}: {{ dateFixed($vote->created_at) }}<br>
  40. {{ __('main.votes') }}: {{ $vote->count }}<br>
  41. </div>
  42. </div>
  43. @endforeach
  44. @else
  45. {{ showError(__('votes.empty_votes')) }}
  46. @endif
  47.  
  48. {{ $votes->links() }}
  49. @stop