control_standart != $beforeData->control_standart) { $shouldUpdate = true; } } if($shouldUpdate) { if(function_exists('dispatchCacheBladeViews')) { dispatchCacheBladeViews([ [ 'view' => 'admin-ajax.request-ndt-no-cache', 'cache' => 'request-ndt' ], [ 'view' => 'admin-ajax.ndt-calculation-no-cache', 'cache' => 'ndt-calculation' ], [ 'view' => 'admin-ajax.ndt-order.order-list-no-cache', 'cache' => 'ndt-order-list' ] ]); Log::info("NDT Log triggered request-ndt cache update due to control_standart change.", [ 'table' => $tableName ?? 'unknown', 'id' => $data->id ?? 'unknown', 'new_value' => $data->control_standart ?? 'null', 'old_value' => $beforeData->control_standart ?? 'null' ]); } }