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

Dashboard Overview

@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 $isAiAssistantEnabled = \App\Models\Back\Metadata::where('data_key', 'enable_ai_assistant')->first(); @endphp @if($isAiAssistantEnabled && $isAiAssistantEnabled->val1 == 1)
AI Assistant BETA
Ask anything about your data
Try:
@endif

Key Performance Indicators

Total Revenue

${{ number_format($totalRevenue, 2) }}

{{ abs($revenueTrend) }}% vs last month
Total Invoices

{{ $totalInvoices }}

12.5% vs last month
Total Clients

{{ $totalClients }}

Active in system
New Leads

{{ $totalLeads }}

{{ abs($leadsTrend) }}% vs last month
Active Products

{{ $totalProducts }}

Available in catalog
Admin Users

{{ $totalAdminUsers }}

System administrators

Lead Generation Trends

View Report

{{ $totalLeads }} Total Leads Over Time

Leads

Recent Leads

@foreach($recentLeads as $lead) @endforeach
Name Service Date
{{ $lead->name }} {{ $lead->service ?? 'Inquiry' }} {{ date('M d', strtotime($lead->created_at)) }}

Quick Actions

@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); $iconColors = ['#0d6efd', '#198754', '#20c997', '#ffc107', '#dc3545', '#6f42c1', '#fd7e14']; $colorCounter = 0; @endphp @foreach ($arrLinks as $key => $val) @if (isset($val['user_type']) && in_array(auth()->user()->type, $val['user_type']))
@if (isset($adminAlerts[$key]) && $adminAlerts[$key] != '0' && $adminAlerts[$key] != '') {{ $adminAlerts[$key] }} @endif {{ $val[0] }}
@endif @php if ($colorCounter == 7) { $colorCounter = 0; } @endphp @endforeach
@endsection @section('beforeBodyClose') @endsection