@include('helpers.form_control', [ 'type' => 'text', 'name' => 'subject', 'value' => $layout->subject, 'rules' => ['subject' => 'subject']]) @include('helpers.form_control', ['class' => ($layout->type == 'page' ? 'full-editor' : 'email-editor'), 'required' => true, 'type' => 'textarea', 'name' => 'content', 'value' => $layout->content, 'rules' => ['content' => 'required']]) @if (count($layout->tags()) > 0)

@foreach($layout->tags() as $tag) @if ($tag["required"]) {{ $tag["name"] }} @endif @endforeach
@endif
@if (count($layout->tags()) > 0)

@foreach($layout->tags() as $tag) @if (!$tag["required"]) {{ $tag["name"] }} @endif @endforeach
@endif
{{ trans('messages.cancel') }}