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

Размер файла: 2.37Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('forums.title_edit_post'))
  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/forums">{{ __('index.forums') }}</a></li>
  11.  
  12. @if ($post->topic->forum->parent->id)
  13. <li class="breadcrumb-item"><a href="/admin/forums/{{ $post->topic->forum->parent->id }}">{{ $post->topic->forum->parent->title }}</a></li>
  14. @endif
  15.  
  16. <li class="breadcrumb-item"><a href="/admin/forums/{{ $post->topic->forum->id }}">{{ $post->topic->forum->title }}</a></li>
  17. <li class="breadcrumb-item"><a href="/admin/topics/{{ $post->topic->id }}">{{ $post->topic->title }}</a></li>
  18. <li class="breadcrumb-item active">{{ __('forums.title_edit_post') }}</li>
  19. </ol>
  20. </nav>
  21. @stop
  22.  
  23. @section('content')
  24. <p>
  25. <i class="fa fa-pencil-alt"></i> <b>{{ $post->user->getName() }}</b>
  26. <small class="section-date text-muted fst-italic">{ dateFixed($post->created_at) }}</small>
  27. </p>
  28.  
  29. <div class="section-form mb-3 shadow">
  30. <form action="/admin/posts/edit/{{ $post->id }}?page={{ $page }}" method="post">
  31. @csrf
  32. <div class="mb-3{{ hasError('msg') }}">
  33. <label for="msg" class="form-label">{{ __('forums.post') }}:</label>
  34. <textarea class="form-control markItUp" maxlength="{{ setting('forumtextlength') }}" id="msg" rows="5" name="msg" required>{{ getInput('msg', $post->text) }}</textarea>
  35. <div class="invalid-feedback">{{ textError('msg') }}</div>
  36. <span class="js-textarea-counter"></span>
  37. </div>
  38.  
  39. @if ($post->files->isNotEmpty())
  40. <i class="fa fa-paperclip"></i> <b>{{ __('main.deleting_files') }}:</b><br>
  41. @foreach ($post->files as $file)
  42. <input type="checkbox" name="delfile[]" value="{{ $file->id }}">
  43. <a href="{{ $file->hash }}" target="_blank">{{ $file->name }}</a> ({{ formatSize($file->size) }})<br>
  44. @endforeach
  45. <br>
  46. @endif
  47.  
  48. <button class="btn btn-primary">{{ __('main.change') }}</button>
  49. </form>
  50. </div>
  51. @stop