fix: 🐛 no need sprintf
This commit is contained in:
parent
f047ed9156
commit
ccecd9b735
1 changed files with 3 additions and 8 deletions
|
|
@ -11,19 +11,14 @@
|
|||
<div class="breeders__text description textblock__info-description">
|
||||
{!! data_get($joinUs, 'wysiwyg_content', '') !!}
|
||||
</div>
|
||||
@if (
|
||||
!empty(data_get($joinUs, 'list_cta.0.model_cta')) &&
|
||||
!empty(data_get($joinUs, 'list_cta.0.reserved_model_cta')))
|
||||
@if (!empty(data_get($joinUs, 'list_cta.0.model_cta')) && !empty(data_get($joinUs, 'list_cta.0.reserved_model_cta')))
|
||||
@php
|
||||
$targetModel = \App\Models\PageConfig::getModelFromInputModelConfig(
|
||||
data_get($joinUs, 'list_cta.0.model_cta'),
|
||||
data_get($joinUs, 'list_cta.0.reserved_model_cta'),
|
||||
);
|
||||
$buttonUrl = sprintf(
|
||||
'%s',
|
||||
\App\Helpers\RouteHelper::routeNameChecker(
|
||||
"front.dynamic-pages.{$targetModel->id_key}",
|
||||
),
|
||||
$buttonUrl = \App\Helpers\RouteHelper::routeNameChecker(
|
||||
"front.dynamic-pages.{$targetModel->id_key}",
|
||||
);
|
||||
@endphp
|
||||
<a class="breeders__btn btn"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue