@extends('layouts.publicador.novo_padrao') @section('content')

@lang('labels.geracao_atitude') / @choice('labels.textos', 0) {{ empty($model->id) ? __('labels.acoes.adicionar') : __('labels.acoes.alterar') }}

@if ($errors->any())
@lang('labels.msg.verifique')
@endif @if (empty($model)) {{ html()->form('POST', route('publicador.geracao.textos.salvar'))->class(['form', 'form-edit'])->open() }} @else {{ html()->modelForm($model, 'PUT', route('publicador.geracao.textos.salvar'))->open() }} {{ html()->hidden('id') }} @endif
{{ html()->label(__('labels.titulo'), 'titulo') }} {{ html()->text('titulo', null)->class(['form-control', 'form-control-sm', 'is-invalid' => $errors->has('titulo')])->attributes(['maxlength' => 250, 'placeholder' => __('labels.titulo')]) }} @if ($errors->has('titulo'))
{{ $errors->first('titulo') }}
@endif
{{ html()->label('Tag CSS (Não mexer)', 'csstag') }} {{ html()->text('csstag', null)->class(['form-control', 'form-control-sm', 'is-invalid' => $errors->has('csstag')])->attributes(['maxlength' => 250]) }} @if ($errors->has('csstag'))
{{ $errors->first('csstag') }}
@endif
{{ html()->label(trans_choice('labels.textos', 1), 'texto') }} {{ html()->textarea('texto', null)->class(['form-control', 'form-control-sm', 'is-invalid' => $errors->has('texto')])->attribute('placeholder', trans_choice('labels.textos', 1)) }} @if ($errors->has('texto'))
{{ $errors->first('texto') }}
@endif

{{ html()->submit(__('labels.acoes.salvar'))->class(['btn', 'btn-success']) }}

@if (empty($model)) {{ html()->form()->close() }} @else {{ html()->closeModelForm() }} @endif
@include('layouts.publicador.tinymce') @endsection