Unverified Commit 18b306af authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #274 from vrkansagara/master

Adding analytics for backed layout
parents 845b4ffb 193b07ca
......@@ -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.
......
......@@ -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));
}
/**
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment