@extends('back.layouts.app', ['title' => FindInsettingArr('business_name') . ' | Dashboard']) @section('beforeHeadClose') @endsection @section('content')

Dashboard

@include('back.common_views.quicklinks')
@include('flash::message')
@if ($news != null && count($news) > 0)
@foreach ($news as $newsItem) @endforeach
@endif
@include('back.dashboard.google_analytics')
@php $currentURL = url()->current(); $currentURL = rtrim($currentURL, '.html'); $currentURL = str_replace(base_url(), '', $currentURL); $arrLinks = []; $beforeLinks = \App\Helpers\DashboardLinks::$beforeModuleLinks; $arrLinksModule = \App\Helpers\DashboardLinks::get_cms_modules('dashboard'); $afterLinks = \App\Helpers\DashboardLinks::$afterModuleLinks; $arrLinks = array_merge($beforeLinks, $arrLinksModule, $afterLinks); $bgClasses = ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark']; $bgClassCounter = 0; @endphp @foreach ($arrLinks as $key => $val) @if (isset($val['user_type']) && in_array(auth()->user()->type, $val['user_type'])) @endif @php if ($bgClassCounter == 7) { $bgClassCounter = 0; } @endphp @endforeach
@endsection @section('beforeBodyClose') @endsection