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
18b306af
Unverified
Commit
18b306af
authored
Oct 18, 2018
by
Viral Solani
Committed by
GitHub
Oct 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #274 from vrkansagara/master
Adding analytics for backed layout
parents
845b4ffb
193b07ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
README.md
README.md
+1
-0
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.
README.md
View file @
18b306af
...
...
@@ -5,6 +5,7 @@
[
![GitHub issues
](
https://img.shields.io/github/issues/viralsolani/laravel-adminpanel.svg?style=plastic
)
](https://github.com/viralsolani/laravel-adminpanel/issues)
![
StyleCI
](
https://img.shields.io/badge/styleCI-passed-brightgreen.svg?style=plastic
)
## [Demo](https://laravel-adminpanel.vrkansagara.in/)
## Introduction
*
This is a laravel Admin Panel, based on
[
Rappasoft Laravel Boilerplate
](
https://github.com/rappasoft/laravel-5-boilerplate/releases/tag/4.5.7
)
, with enhancemenets and many modules pre-made, just for you.
...
...
app/Http/Controllers/Backend/DashboardController.php
View file @
18b306af
...
...
@@ -7,7 +7,7 @@ use App\Models\Access\Permission\Permission;
use
App\Models\Access\Role\Role
;
use
App\Models\Access\User\User
;
use
Illuminate\Http\Request
;
use
App\Models\Settings\Setting
;
/**
* Class DashboardController.
*/
...
...
@@ -18,7 +18,10 @@ class DashboardController extends Controller
*/
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 @
18b306af
...
...
@@ -38,6 +38,11 @@
<script>
window
.
Laravel
=
{
!!
json_encode
([
'
csrfToken
'
=>
csrf_token
()
])
!!
};
</script>
<?php
if
(
!
empty
(
$google_analytics
)){
echo
$google_analytics
;
}
?>
</head>
<body
class=
"skin-{{ config('backend.theme') }} {{ config('backend.layout') }}"
>
<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