@extends('layouts.app', [ 'title' => trans('crud.attributes.template.title', ['name' => $entity->name]), 'description' => '', 'breadcrumbs' => [ ['url' => route($parentRoute . '.index'), 'label' => trans($parentRoute . '.index.title')], ['url' => route($parentRoute . '.show', $entity->child->id), 'label' => $entity->name] ] ]) @section('content')
@include('partials.errors') {!! Form::open(array('route' => ['entities.attributes.template', $entity->id], 'method'=>'POST', 'data-shortcut' => "1")) !!} {{ csrf_field() }}
{!! Form::select('template_id', \App\Models\AttributeTemplate::pluck('name', 'id'), null, ['placeholder' => trans('crud.attributes.placeholders.template'), 'class' => 'form-control']) !!}
{!! Form::hidden('entity_id', $entity->id) !!}
{!! trans('crud.or_cancel', ['url' => (!empty($cancel) ? $cancel : url()->previous() . (strpos(url()->previous(), '?tab=') === false ? '?tab=attribute' : null))]) !!}
{!! Form::close() !!}
@endsection