From 13db542a7b6380aaf22a6d745655f2f02fceac4b Mon Sep 17 00:00:00 2001 From: UronShrestha Date: Tue, 16 Jul 2024 14:04:16 +0545 Subject: [PATCH] "Updated adminheader component to accept title parameter and passed title from various dashboard views |SEO optimized title|" --- app/View/Components/adminheader.php | 4 +++- resources/views/Dashboard/customers.blade.php | 2 +- resources/views/Dashboard/index.blade.php | 2 +- resources/views/Dashboard/orders.blade.php | 2 +- resources/views/Dashboard/products.blade.php | 2 +- resources/views/Dashboard/profile.blade.php | 2 +- resources/views/components/adminheader.blade.php | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/app/View/Components/adminheader.php b/app/View/Components/adminheader.php index aa28ae2..e086130 100644 --- a/app/View/Components/adminheader.php +++ b/app/View/Components/adminheader.php @@ -11,9 +11,11 @@ class adminheader extends Component /** * Create a new component instance. */ - public function __construct() + public $title; + public function __construct($title) { // + $this->title = $title; } /** diff --git a/resources/views/Dashboard/customers.blade.php b/resources/views/Dashboard/customers.blade.php index 3ae7615..9e2bff2 100644 --- a/resources/views/Dashboard/customers.blade.php +++ b/resources/views/Dashboard/customers.blade.php @@ -1,4 +1,4 @@ - +
diff --git a/resources/views/Dashboard/index.blade.php b/resources/views/Dashboard/index.blade.php index 1142141..dbf62e9 100644 --- a/resources/views/Dashboard/index.blade.php +++ b/resources/views/Dashboard/index.blade.php @@ -1,4 +1,4 @@ - +
diff --git a/resources/views/Dashboard/orders.blade.php b/resources/views/Dashboard/orders.blade.php index 4cbd243..a6d4d4e 100644 --- a/resources/views/Dashboard/orders.blade.php +++ b/resources/views/Dashboard/orders.blade.php @@ -1,5 +1,5 @@ {{-- new --}} - +
diff --git a/resources/views/Dashboard/products.blade.php b/resources/views/Dashboard/products.blade.php index f019745..d016e0e 100644 --- a/resources/views/Dashboard/products.blade.php +++ b/resources/views/Dashboard/products.blade.php @@ -1,4 +1,4 @@ - +
diff --git a/resources/views/Dashboard/profile.blade.php b/resources/views/Dashboard/profile.blade.php index 09637a7..1936754 100644 --- a/resources/views/Dashboard/profile.blade.php +++ b/resources/views/Dashboard/profile.blade.php @@ -1,4 +1,4 @@ - +
diff --git a/resources/views/components/adminheader.blade.php b/resources/views/components/adminheader.blade.php index c4cb74a..003dd24 100644 --- a/resources/views/components/adminheader.blade.php +++ b/resources/views/components/adminheader.blade.php @@ -16,7 +16,7 @@ - Admin Panel + {{ $title }}