"Updated adminheader component to accept title parameter and passed title from various dashboard views |SEO optimized title|"
This commit is contained in:
parent
7670867b62
commit
13db542a7b
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
<x-adminheader />
|
||||
<x-adminheader title="Customers" />
|
||||
|
||||
<!-- partial -->
|
||||
<div class="main-panel">
|
||||
|
@ -1,4 +1,4 @@
|
||||
<x-adminheader />
|
||||
<x-adminheader title="Home" />
|
||||
|
||||
<!-- partial -->
|
||||
<div class="main-panel">
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{-- new --}}
|
||||
<x-adminheader />
|
||||
<x-adminheader title="Orders" />
|
||||
|
||||
<!-- partial -->
|
||||
<div class="main-panel">
|
||||
|
@ -1,4 +1,4 @@
|
||||
<x-adminheader />
|
||||
<x-adminheader title="Products" />
|
||||
|
||||
<!-- partial -->
|
||||
<div class="main-panel">
|
||||
|
@ -1,4 +1,4 @@
|
||||
<x-adminheader />
|
||||
<x-adminheader title="Profile" />
|
||||
|
||||
<!-- partial -->
|
||||
<div class="main-panel">
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user