@include( 'main.components.breadcrumb', [ 'url' => 'term.view', 'breadcrumb_before' => 'Term manage', 'breadcrumb_after' => (isset($method) && $method=='create') ? 'Add new term' : 'Update term' ] )
@php $action = isset($method) && $method=='create' ? route('term.store') : route('term.update', $term->id); $title = isset($method) && $method=='create' ? 'Add new term' : 'Update term'; @endphp

{{$title}}

{!! __('term.create.note') !!}

@csrf
@error('name')
{{ $message }}
@enderror
@error('code')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@if(isset($method) && $method=='create') @else publish) && $term->publish == \App\Constants\Number::PUBLISH) checked @endif /> @endif
@if(isset($term->color)) @php $color = explode('|', $term->color); @endphp {{isset($color[1]) ? $color[1] : 'Transparent'}} @else Color @endif
@if(isset($term) && $term->meta) @foreach($term->meta as $key => $val)
@endforeach @endif
{{__('general.button.cancel')}}