@php $settingData = get_post_setting_data($dynamic, isset($category) ? $category : null); $postSettings = $settingData['postSettings']; $postOptions = $postSettings->makeByPrefix('detail_'); $header = $options->theme->header; $breadcrumb_background = $settingData['header_image'] ?? $header->breadcrumb_background; if ($postSettings->breadcrumb_background) { $breadcrumb_background = $postSettings->breadcrumb_background; } if ($postOptions->breadcrumb_background) { $breadcrumb_background = $postOptions->breadcrumb_background; } $ufe = $postOptions->use_feature_image ?? $postSettings->header_use_feature_image; if ($postOptions->use_feature_image ?? $postSettings->header_use_feature_image && $article->featured_image && ($image = $article->getImage())) { $breadcrumb_background = $image; } $header_style = $postSettings->header_style(1); $layout = in_array($postOptions->layout, ['fullwidth', 'custom']) || $postOptions->type == 'project' ? 'master' : $postOptions->layout; $dateFormat = config('app.locale') == 'vi' ? 'd/m/Y' : 'M d, Y'; $u = $article->getViewUrl(); @endphp @extends($_layout . 'blog') @section('title', $page_title) @include($_lib . 'register-meta') @if ($postOptions->show_breadcrumb) @section('breadcrumb.show', true) @section('breadcrumb.title', $page_title) @if ($breadcrumb_background) @section('breadcrumb.background', $breadcrumb_background) @endif @endif @section('sidebar', 'post') @if ($breadcrumb_background) @section('breadcrumb.background', $breadcrumb_background) @endif @section('content')