Added log in render method of target #1142

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-30 11:04:04 +00:00

View File

@@ -662,10 +662,22 @@ class ProductionTargetPlan extends Component
public function render()
{
// return view('livewire.production-target-plan');
return view('livewire.production-target-plan', [
// return view('livewire.production-target-plan', [
// 'records' => $this->records,
// 'monthlyRecords' => $this->monthlyRecords,
// 'dates' => $this->dates,
// ]);
$t = microtime(true);
$view = view('livewire.production-target-plan', [
'records' => $this->records,
'monthlyRecords' => $this->monthlyRecords,
'dates' => $this->dates,
]);
$html = $view->render();
Log::info('Blade render: ' . ((microtime(true) - $t) * 1000) . ' ms');
return $html;
}
}