Размер файла: 1.29Kb
@extends('layout')
@section('title')
{{ __('guestbooks.title_edit') }}
@stop
@section('breadcrumb')
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="/">{{ __('index.guestbooks') }}</a></li>
<li class="breadcrumb-item active">{{ __('guestbooks.title_edit') }}</li>
</ol>
</nav>
@stop
@section('content')
<i class="fa fa-pencil-alt text-muted"></i> <b>{!! $post->user->login !!}</b> ({{ dateFixed($post->created_at) }})<br><br>
<div class="form">
<form action="/guestbooks/edit/{{ $post->id }}" method="post">
@csrf
<div class="form-group{{ hasError('msg') }}">
<label for="msg">{{ __('main.message') }}:</label>
<textarea class="form-control markItUp" id="msg" rows="5" maxlength="{{ setting('guesttextlength') }}" name="msg" placeholder="{{ __('main.message') }}" required>{{ getInput('msg', $post->text) }}</textarea>
<div class="invalid-feedback">{{ textError('msg') }}</div>
<span class="js-textarea-counter"></span>
</div>
<button class="btn btn-primary">{{ __('main.edit') }}</button>
</form>
</div><br>
@stop