@extends('layouts.master')
@section('content')
<!-- <script src="{{ asset('assets/plugins/chart.js/Chart.min.js') }}"></script>
    <script src="plugins/chart.js/Chart.min.js"></script>
    <script src="plugins/jquery/jquery.min.js"></script> -->
<div class="content-wrapper">
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0">Dashboard</h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
                        {{-- <li class="breadcrumb-item active">Dashboard</li> --}}
                    </ol>
                </div>
            </div>
        </div>
    </div>
    <div class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-3 col-6">
                    <div class="small-box bg-info">
                        <div class="inner">
                            <h3>{{ $events }}</h3>

                            <p>Total Event/Folder </p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-bag"></i>
                        </div>
                        <a href="{{ route('event.list') }}" class="small-box-footer"> More Info <i
                                class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>

                <div class="col-lg-3 col-6">
                    <div class="small-box bg-success">
                        <div class="inner">
                            <h3>{{ $users }}<sup style="font-size: 20px"></sup></h3>

                            <p>Total TeamMembers</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-stats-bars"></i>
                        </div>
                        <a @if(Auth::user()->getUser() && Auth::user()->getUser()->is_admin == "true") href="{{ route('users.list') }}" @else href="" @endif class="small-box-footer">More Info <i
                                class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>

                <div class="col-lg-3 col-6">
                    <div class="small-box bg-warning" style="color: #f8f9fa!important;">
                        <div class="inner">
                            <h3>{{ $visitors }}</h3>

                            <p>Total Clients</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-person-add"></i>
                        </div>
                        <a href="{{ route('visitor.list') }}" class="small-box-footer"
                            style="color: #f8f9fa!important;">More Info <i class="fas fa-arrow-circle-right"
                                style="color: #f8f9fa!important;"></i></a>
                    </div>
                </div>
                <div class="col-lg-3 col-6">
                    <div class="small-box bg-danger">
                        <div class="inner">
                            <h3>{{ $products }}</h3>

                            <p>Total Products</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-pie-graph"></i>
                        </div>
                        <a href="{{ route('product.list') }}" class="small-box-footer">More Info <i
                                class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row">
                <!-- QR Code Card -->
                <div class="col-md-3">
                    <div class="card">
                        <div class="card-body text-center">
                            <img class="card-img-top" src="https://frenzinsoftwares.com/frenzincrmqrcode.png" alt="QR Code" style="height: 200px; width: 200px; border: 2px solid black;">
                            <h4 class="mt-3">Scan To Download App</h4>
                        </div>
                    </div>
                </div>

                <!-- YouTube Training Video Card -->
                <div class="col-md-3">
                    <a target="_blank" href="https://frenzinsoftwares.com/youtube.html" style="text-decoration: none;">
                        <div class="card">
                            <div class="card-body text-center" style="height: 284px;">

                                <img src="{{ asset('assets/images/dashboard_icons/youtube_icon.png') }}" alt="YouTube Icon" style="height: 200px;">
                                <h4 class="mt-3" style="color: black;">Click for Training Video</h4>

                            </div>
                        </div>
                    </a>
                </div>

                <!-- User Manual Card -->
                <div class="col-md-3">
                    <a target="_blank" href="https://frenzinsoftwares.com/CRM_Manual.pdf" style="text-decoration: none;">
                        <div class="card">
                            <div class="card-body text-center" style="height: 284px;">

                                <img src="{{ asset('assets/images/dashboard_icons/pdf.png') }}" alt="PDF Icon" style="height: 200px;">
                                <h4 class="mt-3" style="color: black;">Click for User Manual</h4>

                            </div>
                        </div>
                    </a>
                </div>

                <!-- App Download Card -->
                <!-- <div class="col-md-3">
                    <div class="card">
                        <div class="card-body text-center">
                           
                            <h4 class="mt-3">Download Mobile App</h4>
                        </div>
                    </div>
                </div> -->
            </div>



            <div class="row">
                <div class="col-md-8" style="margin-top: 50px;margin-bottom: 20px;display: flex;align-items: flex-end;">
                    <div style="display: grid;">

                    </div>
                    <div style="">


                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

<!-- <section class="col-lg-7 connectedSortable">
                    <div class="card card-danger">
                        <div class="card-header">
                            <h3 class="card-title">Pie Chart</h3>
                            <div class="card-tools">
                                <button type="button" class="btn btn-tool" data-card-widget="collapse">
                                    <i class="fas fa-minus"></i>
                                </button>
                                <button type="button" class="btn btn-tool" data-card-widget="remove">
                                    <i class="fas fa-times"></i>
                                </button>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="chartjs-size-monitor">
                                <div class="chartjs-size-monitor-expand">
                                    <div class=""></div>
                                </div>
                                <div class="chartjs-size-monitor-shrink">
                                    <div class=""></div>
                                </div>
                            </div>
                            <canvas id="canvas"
                                style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%; display: block; width: 487px;"
                                width="487" height="250" class="chartjs-render-monitor"></canvas>
                        </div>
                    </div>
                </section> -->
<!-- <section class="col-lg-5 connectedSortable">
                    <div class="card bg-gradient-info">
                        <div class="card-header border-0">
                            <h3 class="card-title">
                                <i class="fas fa-th mr-1"></i>
                                Sales Graph
                            </h3>
                            <div class="card-tools">
                                <button type="button" class="btn bg-info btn-sm" data-card-widget="collapse">
                                    <i class="fas fa-minus"></i>
                                </button>
                                <button type="button" class="btn bg-info btn-sm" data-card-widget="remove">
                                    <i class="fas fa-times"></i>
                                </button>
                            </div>
                        </div>
                        <div class="card-body">
                            <canvas class="chart" id="line-chart"
                                style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
                        </div>
                        <div class="card-footer bg-transparent">
                            <div class="row">
                                <div class="col-4 text-center">
                                    <input type="text" class="knob" data-readonly="true" value="20" data-width="60"
                                        data-height="60" data-fgColor="#39CCCC">

                                    <div class="text-white">Mail-Orders</div>
                                </div>
                                <div class="col-4 text-center">
                                    <input type="text" class="knob" data-readonly="true" value="50" data-width="60"
                                        data-height="60" data-fgColor="#39CCCC">
                                    <div class="text-white">Online</div>
                                </div>
                                <div class="col-4 text-center">
                                    <input type="text" class="knob" data-readonly="true" value="30" data-width="60"
                                        data-height="60" data-fgColor="#39CCCC">
                                    <div class="text-white">In-Store</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </section> -->