@if (empty($object))
{!! Form::permalink('slug', old('slug'), 0, $prefix, [], true, $class) !!}
{!! Form::error('slug', $errors) !!}
@else
{!! Form::permalink('slug', $object->slug, $object->slug_id, $prefix, SlugHelper::canPreview($class) && $object->status != \Botble\Base\Enums\BaseStatusEnum::PUBLISHED, [], true, $class) !!}
{!! Form::error('slug', $errors) !!}
@endif