From 3d0dcd2a547983f9e8ca25d277f8e1e516435307 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 30 Sep 2026 16:33:52 +0530 Subject: [PATCH] Added log in render method of target --- app/Livewire/ProductionTargetPlan.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/Livewire/ProductionTargetPlan.php b/app/Livewire/ProductionTargetPlan.php index e47cdd05..dcb6e2f1 100644 --- a/app/Livewire/ProductionTargetPlan.php +++ b/app/Livewire/ProductionTargetPlan.php @@ -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; + + } }