@extends('layouts.digitar') @section('Breadcrumbs') {!! Breadcrumbs::render('documentTypes.new') !!} @endsection @section('content') @include('common.errors')
{!! Form::open(['route' => 'store.category', 'files' => true, 'method' => 'POST']) !!}
{!! Form::label('parent_id', 'Filho de:') !!} {!! Form::select( 'parent_id', \App\Models\ListeningCategory::all()->pluck('name', 'id')->prepend('Selecione...', 0), 0, ['class' => 'form-control'], ) !!}
{!! Form::label('name', 'Nome:') !!} {!! Form::text('name', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('prefix', 'Prefixo:') !!} {!! Form::text('prefix', null, ['class' => 'form-control']) !!}
{!! Form::submit('Salvar', ['class' => 'btn btn-primary']) !!} Cancelar
{!! Form::close() !!}
@if (session('error'))
{!! session('error') !!}
@endif @if (session('success'))
{!! session('success') !!}
@endif @if (session('warning'))
{!! session('warning') !!}
@endif
@if ($category && $category->count()) @foreach ($category as $categorias) @endforeach @else @endif
Nome Prefixo Filho de Ações
{{ $categorias->name }} {{ $categorias->prefix }} {{ $categorias->parent ? $categorias->parent->name : 'N/A' }}
@csrf @method('DELETE')
Nenhum registro encontrado
@endsection