"Updated adminheader component to accept title parameter and passed title from various dashboard views |SEO optimized title|"

This commit is contained in:
UronShrestha 2024-07-16 14:04:16 +05:45
parent 7670867b62
commit 13db542a7b
7 changed files with 9 additions and 7 deletions

View File

@ -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;
}
/**

View File

@ -1,4 +1,4 @@
<x-adminheader />
<x-adminheader title="Customers" />
<!-- partial -->
<div class="main-panel">

View File

@ -1,4 +1,4 @@
<x-adminheader />
<x-adminheader title="Home" />
<!-- partial -->
<div class="main-panel">

View File

@ -1,5 +1,5 @@
{{-- new --}}
<x-adminheader />
<x-adminheader title="Orders" />
<!-- partial -->
<div class="main-panel">

View File

@ -1,4 +1,4 @@
<x-adminheader />
<x-adminheader title="Products" />
<!-- partial -->
<div class="main-panel">

View File

@ -1,4 +1,4 @@
<x-adminheader />
<x-adminheader title="Profile" />
<!-- partial -->
<div class="main-panel">

View File

@ -16,7 +16,7 @@
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title> Admin Panel</title>
<title> {{ $title }} </title>
<!-- plugins:css -->
<link rel="stylesheet" href="Dashboard/vendors/feather/feather.css">
<link rel="stylesheet" href="Dashboard/vendors/ti-icons/css/themify-icons.css">