@php $split_test = \App\Models\SplitTest::whereId($split_test_stat->split_test_id)->first(); $action_data = ($split_test && !empty($split_test->action_data)) ? json_decode($split_test->action_data) : null; $hourlyLimit = '—'; $hourlyLimitClass = 'is-limited'; $hourlyLimitIcon = 'bi bi-speedometer2'; if (!empty($split_test_stat->sending_speed)) { $speed = json_decode($split_test_stat->sending_speed); if (is_object($speed) && isset($speed->speed)) { if ($speed->speed === 'unlimited') { $hourlyLimit = __('app.maximum'); $hourlyLimitClass = 'is-maximum'; $hourlyLimitIcon = 'bi bi-lightning-charge-fill'; } else { $limitValue = $speed->limit ?? '—'; $hourlyLimit = __('app.limited') . ' (' . $limitValue . '/' . __('app.hourly') . ')'; } } } $afterParts = []; if ($action_data) { if (isset($action_data->send_remaining_after) && $action_data->send_remaining_after !== '') { $afterParts[] = $action_data->send_remaining_after; } if (!empty($action_data->send_remaining_after_duration)) { $afterParts[] = $action_data->send_remaining_after_duration; } } $afterDisplay = count($afterParts) ? implode(' ', $afterParts) : '—'; @endphp