@php $prefix = apply_filters(FILTER_SLUG_PREFIX, $prefix); $value = $value ?: old('slug'); $endingURL = SlugHelper::getPublicSingleEndingURL(); $previewURL = str_replace('--slug--', (string) $value, url($prefix) . '/' . config('packages.slug.general.pattern')) . $endingURL . (Auth::user() && $preview ? '?preview=true' : ''); @endphp
has($name)) class="hidden" @endif data-field-name="{{ SlugHelper::getColumnNameToGenerateSlug($model) }}"> @if (in_array(Route::currentRouteName(), ['pages.create', 'pages.edit']) && BaseHelper::isHomepage(Route::current()->parameter('page.id'))) : @else : @if ($editable) @if (Auth::user() && $preview && $id) {{ trans('packages/slug::slug.preview') }} @endif
@endif @endif