@php header("content-type:text/css"); $channel = core()->getDefaultChannelCode(); $companyRepository = Company::getCurrent(); $customStyleRepository = app('\Glob\CustomStyle\Repositories\CustomStyleRepository'); $styleData = $customStyleRepository->GetStyleData($companyRepository->id, $channel); $currentTheme = core()->getCurrentChannel()->theme; if ($styleData) { $enabled = true; $style = json_decode(json_encode($styleData), true); $top_style = explode(",", $style['top']); $header_style = explode(",", $style['header']); $category_style = explode(",", $style['category']); $content_style = explode(",", $style['content']); $footer_style = explode(",", $style['footer']); $button_style = explode(",", $style['button']); $social_style = explode(",", $style['social']); $topBackColor = $top_style[1]; $topColor = $top_style[3]; //need to be used $headerBackColor = $header_style[1]; $headerColor = $header_style[3]; $backColor = $content_style[1]; $color = $content_style[3]; $footerBackColor = $footer_style[1]; $footerColor = $footer_style[3]; $catBackColor = $category_style[1]; $catColor = $category_style[3]; $btnBackColor = $button_style[1]; $btnFont = $button_style[3]; $socialBackColor = $social_style[1]; $socialColor = $social_style[3]; } else { $enabled = false; } @endphp