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

Размер файла: 1.94Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('index.email_templates'))
  4.  
  5. @section('header')
  6. <div class="float-end">
  7. <a class="btn btn-success" href="/admin/notices/create">{{ __('main.add') }}</a>
  8. </div>
  9.  
  10. <h1>{{ __('index.email_templates') }}</h1>
  11. @stop
  12.  
  13. @section('breadcrumb')
  14. <nav>
  15. <ol class="breadcrumb">
  16. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  17. <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
  18. <li class="breadcrumb-item active">{{ __('index.email_templates') }}</li>
  19. </ol>
  20. </nav>
  21. @stop
  22.  
  23. @section('content')
  24. @if ($notices->isNotEmpty())
  25. @foreach ($notices as $notice)
  26. <div class="section mb-3 shadow">
  27. <div class="section-title">
  28. <i class="fa fa-envelope"></i>
  29. <a href="/admin/notices/edit/{{ $notice->id }}">{{ $notice->name }}</a>
  30.  
  31. <div class="float-end">
  32. @if ($notice->protect)
  33. <i class="fa fa-lock"></i>
  34. @else
  35. <a href="/admin/notices/delete/{{ $notice->id }}?token={{ $_SESSION['token'] }}" onclick="return confirm('{{ __('admin.notices.confirm_delete') }}')"><i class="fa fa-trash-alt"></i></a>
  36. @endif
  37. </div>
  38. </div>
  39.  
  40. <div class="section-content">
  41. <span class="badge bg-info">{{ __('main.type') }}: {{ $notice->type }}</span><br>
  42. {{ __('main.changed') }}: {{ $notice->user->getProfile() }}
  43. <small class="section-date text-muted fst-italic">{{ dateFixed($notice->updated_at) }}</small>
  44. </div>
  45. </div>
  46. @endforeach
  47.  
  48. {{ __('main.total') }}: {{ $notices->count() }}<br>
  49. @else
  50. {{ showError(__('admin.notices.empty_notices')) }}
  51. @endif
  52. @stop