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

Размер файла: 1.24Kb
@extends('layout')

@section('title')
    {{ trans('guest.title_edit') }}
@stop

@section('content')
    <h1>{{ trans('guest.title_edit') }}</h1>

    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
            <li class="breadcrumb-item"><a href="/">{{ trans('guest.header') }}</a></li>
            <li class="breadcrumb-item active">{{ trans('guest.title_edit') }}</li>
        </ol>
    </nav>

    <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="/book/edit/{{ $post->id }}" method="post">
            <input type="hidden" name="token" value="{{ $_SESSION['token'] }}">

            <div class="form-group{{ hasError('msg') }}">
                <label for="msg">{{ trans('guest.message') }}:</label>
                <textarea class="form-control markItUp" id="msg" rows="5" name="msg" placeholder="{{ trans('guest.message_text') }}" required>{{ getInput('msg', $post->text) }}</textarea>
                {!! textError('msg') !!}
            </div>

            <button class="btn btn-primary">{{ trans('guest.edit') }}</button>
        </form>
    </div><br>
@stop