@extends(layoutTenant()) @section('content')

Incluir Materia

@if (session('erro'))
{{ session('erro') }}
@endif
Incluir Materia {{ $tipo == 2 ? ' - Edição extra': ''}}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session('success'))
{{ session('success') }}
@endif @if($tipo == 2) {!! Form::open(['url' => routeTenant('materias.store', ['tipo' => 2]), 'enctype' => 'multipart/form-data', 'class' => 'form']) !!} @else {!! Form::open(['url' => routeTenant('materias.store', ['tipo' => 1]), 'enctype' => 'multipart/form-data', 'class' => 'form']) !!} @endif
{!! Form::label('setores', 'Setores:') !!}
@include('app.diario.materias._form') {!! Form::submit('Incluir Materia', ['class' => 'btn btn-primary']) !!} {!! Form::close() !!}
@endsection