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

{{ empty($model->id) ? 'Novo Curso/Palestra' : 'Editar Curso/Palestra' }}

Preencha as informações abaixo para {{ empty($model->id) ? 'cadastrar um novo' : 'atualizar o' }} evento

@if ($errors->any())
Atenção!

Corrija os erros destacados antes de salvar.

@endif @if (empty($model)) {!! Form::open(['route' => ['publicador.escola.palestras.salvar'], 'class' => 'main-form', 'id' => 'mainForm', 'files' => true]) !!} @else {!! Form::model($model, ['route' => ['publicador.escola.palestras.salvar'], 'method' => 'put', 'id' => 'mainForm', 'files' => true]) !!} {{ Form::hidden('id') }} @endif
1
{{ Form::select('tipo', [ 1 => 'Curso', 2 => 'Palestra', 3 => 'Seminário', 4 => 'Simpósio', 5 => 'Encontros', 6 => 'Painel de Debate' ], null, [ 'class' => 'field-input' . ($errors->has('tipo') ? ' field-error' : ''), 'placeholder' => 'Selecione...', 'data-required' => 'true' ]) }}
@if ($errors->has('tipo')) {{ $errors->first('tipo') }} @endif
{{ Form::select('formato', [ 1 => 'Presencial', 2 => 'Online', 3 => 'Híbrido' ], null, [ 'class' => 'field-input' . ($errors->has('formato') ? ' field-error' : ''), 'placeholder' => 'Selecione...', 'data-required' => 'true' ]) }}
@if ($errors->has('formato')) {{ $errors->first('formato') }} @endif
{{ Form::select('publicado', \Config::get('constants.visibilidade_palestras'), null, [ 'class' => 'field-input' . ($errors->has('publicado') ? ' field-error' : ''), 'placeholder' => 'Selecione...', 'data-required' => 'true' ]) }}
@if ($errors->has('publicado')) {{ $errors->first('publicado') }} @endif
{{ Form::select('tipo_certificado', [ 'palestra' => 'Palestra', 'curso' => 'Curso', 'Seminario' => 'Seminário', 'Simposio' => 'Simpósio' ], null, [ 'class' => 'field-input' . ($errors->has('tipo_certificado') ? ' field-error' : ''), 'placeholder' => 'Selecione...', 'data-required' => 'true' ]) }}
@if ($errors->has('tipo_certificado')) {{ $errors->first('tipo_certificado') }} @endif
{{ Form::text('titulo', null, [ 'class' => 'field-input' . ($errors->has('titulo') ? ' field-error' : ''), 'maxlength' => 190, 'placeholder' => 'Ex: Introdução ao Direito Constitucional', 'data-required' => 'true' ]) }} 0/190
@if ($errors->has('titulo')) {{ $errors->first('titulo') }} @endif
2