Added log in render method of target #1142
@@ -662,10 +662,22 @@ class ProductionTargetPlan extends Component
|
|||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
// return view('livewire.production-target-plan');
|
// 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,
|
'records' => $this->records,
|
||||||
'monthlyRecords' => $this->monthlyRecords,
|
'monthlyRecords' => $this->monthlyRecords,
|
||||||
'dates' => $this->dates,
|
'dates' => $this->dates,
|
||||||
]);
|
]);
|
||||||
|
$html = $view->render();
|
||||||
|
Log::info('Blade render: ' . ((microtime(true) - $t) * 1000) . ' ms');
|
||||||
|
return $html;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user