13 lines
469 B
PHP
13 lines
469 B
PHP
@php
|
|
$associatedEnum = $model->associated_page;
|
|
$staticPageModel = \App\Models\StaticPage::getCachedBreedingStaticPages()->filter(function($staticPage) use ($associatedEnum) {
|
|
return $staticPage->type === $associatedEnum;
|
|
})->first();
|
|
@endphp
|
|
@include('fo.partials.news-card', [
|
|
'model' => $model,
|
|
'routeCustom' => route('fo.breeding.article.show', [
|
|
'breeding_static_page' => $staticPageModel,
|
|
'published_news_breeding' => $model
|
|
])
|
|
])
|