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

Размер файла: 1.88Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('blogs.title_edit_comment'))
  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="/blogs">{{ __('index.blogs') }}</a></li>
  10.  
  11. @if ($article->category->parent->id)
  12. <li class="breadcrumb-item"><a href="/blogs/{{ $article->category->parent->id }}">{{ $article->category->parent->name }}</a></li>
  13. @endif
  14.  
  15. <li class="breadcrumb-item"><a href="/blogs/{{ $article->category->id }}">{{ $article->category->name }}</a></li>
  16. <li class="breadcrumb-item"><a href="/articles/{{ $article->id }}">{{ $article->title }}</a></li>
  17. <li class="breadcrumb-item"><a href="/articles/comments/{{ $article->id }}">{{ __('main.comments') }}</a></li>
  18. <li class="breadcrumb-item active">{{ __('blogs.title_edit_comment') }}</li>
  19. </ol>
  20. </nav>
  21. @stop
  22.  
  23. @section('content')
  24. <i class="fa fa-pencil-alt"></i> <b>{{ $comment->user->getName() }}</b> <small>({{ dateFixed($comment->created_at) }})</small><br><br>
  25.  
  26. <div class="section-form mb-3 shadow">
  27. <form action="/articles/edit/{{ $comment->relate_id }}/{{ $comment->id }}?page={{ $page }}" method="post">
  28. @csrf
  29. <div class="form-group{{ hasError('msg') }}">
  30. <label for="msg">{{ __('main.message') }}:</label>
  31. <textarea class="form-control markItUp" maxlength="{{ setting('comment_length') }}" id="msg" rows="5" name="msg" required>{{ getInput('msg', $comment->text) }}</textarea>
  32. <div class="invalid-feedback">{{ textError('msg') }}</div>
  33. <span class="js-textarea-counter"></span>
  34. </div>
  35.  
  36. <button class="btn btn-primary">{{ __('main.edit') }}</button>
  37. </form>
  38. </div>
  39. @stop