Commit 193b07ca authored by Vallabh Kansagara's avatar Vallabh Kansagara

Adding analytics for dashboard

parent a4603c4d
......@@ -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