where('email', $customer->email)->first(); if (!$customer) { return $widgets; } $html = (new FluentCRMDeepIntegration())->getStatsHtml($customer); if($html) { $css = 'ul.fc_full_listed { border-radius: 4px; list-style: none; margin: 0; padding: 0; } ul.fc_full_listed li { border-bottom: 1px solid #ebeef4; display: block; margin: 0; padding: 5px 0; } ul.fc_full_listed>li span.fc_list_sub { font-weight: 500; } ul.fc_full_listed>li span.fc_list_value { float: right; }'; $html .= ''; } $widgets['fluent_cart_purchases'] = [ 'header' => __('Purchases', 'fluent-cart'), 'body_html' => $html, ]; return $widgets; } }