Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
193b07ca
Commit
193b07ca
authored
Oct 18, 2018
by
Vallabh Kansagara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding analytics for dashboard
parent
a4603c4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
DashboardController.php
app/Http/Controllers/Backend/DashboardController.php
+5
-2
app.blade.php
resources/views/backend/layouts/app.blade.php
+5
-0
No files found.
app/Http/Controllers/Backend/DashboardController.php
View file @
193b07ca
...
@@ -7,7 +7,7 @@ use App\Models\Access\Permission\Permission;
...
@@ -7,7 +7,7 @@ use App\Models\Access\Permission\Permission;
use
App\Models\Access\Role\Role
;
use
App\Models\Access\Role\Role
;
use
App\Models\Access\User\User
;
use
App\Models\Access\User\User
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
App\Models\Settings\Setting
;
/**
/**
* Class DashboardController.
* Class DashboardController.
*/
*/
...
@@ -18,7 +18,10 @@ class DashboardController extends Controller
...
@@ -18,7 +18,10 @@ class DashboardController extends Controller
*/
*/
public
function
index
()
public
function
index
()
{
{
return
view
(
'backend.dashboard'
);
$settingData
=
Setting
::
first
();
$google_analytics
=
$settingData
->
google_analytics
;
return
view
(
'backend.dashboard'
,
compact
(
'google_analytics'
,
$google_analytics
));
}
}
/**
/**
...
...
resources/views/backend/layouts/app.blade.php
View file @
193b07ca
...
@@ -38,6 +38,11 @@
...
@@ -38,6 +38,11 @@
<script>
<script>
window
.
Laravel
=
{
!!
json_encode
([
'
csrfToken
'
=>
csrf_token
()
])
!!
};
window
.
Laravel
=
{
!!
json_encode
([
'
csrfToken
'
=>
csrf_token
()
])
!!
};
</script>
</script>
<?php
if
(
!
empty
(
$google_analytics
)){
echo
$google_analytics
;
}
?>
</head>
</head>
<body
class=
"skin-{{ config('backend.theme') }} {{ config('backend.layout') }}"
>
<body
class=
"skin-{{ config('backend.theme') }} {{ config('backend.layout') }}"
>
<div
class=
"loading"
style=
"display:none"
></div>
<div
class=
"loading"
style=
"display:none"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment