@extends('layouts.admin')
@section('title', 'Dashboard')
@section('content')

<div class="dashboard-content bg-light mt-5">
    <div class="dashboard-breadcrumb p-lg-5 p-md-5 p-4 position-relative">
        <h4 class="mt-4">Hi, {{ auth()->guard('admin')->user()->name }}</h4>
        <p>Let’s get started with the .......................................</p>
    </div>
    <div class="col-md-12 dashboard-container py-4 px-lg-5 px-md-5 px-4">
        <div class="row">
           
            <div class="col-lg-3 col-md-3 col-6 mt-lg-0 mt-md-0 mt-4">
                <div class="dashboard-card p-4 bg-white h-100">
                    <div class="d-flex justify-content-between align-items-center">
                        <h4 class="mb-0">{{ $allusers ?? '' }}</h4>
                        <!-- <p class="mb-0 up-para">(60.5) <i class="fa-solid fa-arrow-up"></i></p> -->
                    </div>
                    <div class="dashboard-progress mt-4">
                        <p class="mb-2">Total User</p>
                        <!-- <div class="progress" style="height: 10px;">
                            <div class="progress-bar" style="width:20%; height: 10px;"></div>
                        </div> -->
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-6 mt-lg-0 mt-md-0 mt-4">
                <div class="dashboard-card p-4 bg-white h-100">
                    <div class="d-flex justify-content-between align-items-center">
                        <h4 class="mb-0">{{ $activeuser ?? '' }}</h4>
                    </div>
                    <div class="dashboard-progress mt-4">
                        <p class="mb-2">Total Active User</p>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-6 mt-lg-0 mt-md-0 mt-4">
                <div class="dashboard-card p-4 bg-white h-100">
                    <div class="d-flex justify-content-between align-items-center">
                        <h4 class="mb-0">{{ $subscribedUsers ?? '' }}</h4>
                        <!-- <p class="mb-0 up-para">(60.5) <i class="fa-solid fa-arrow-up"></i></p> -->
                    </div>
                    <div class="dashboard-progress mt-4">
                        <p class="mb-2">Subscribed user</p>
                        <!-- <div class="progress" style="height: 10px;">
                            <div class="progress-bar" style="width:20%; height: 10px;"></div>
                        </div> -->
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-6 mt-lg-0 mt-md-0 mt-4">
                <div class="dashboard-card p-4 bg-white h-100">
                    <div class="d-flex justify-content-between align-items-center">
                        <h4 class="mb-0">{{ $unsubscribedUsers ?? '' }}</h4>
                        <!-- <p class="mb-0 up-para2">(60.5) <i class="fa-solid fa-arrow-down"></i></p> -->
                    </div>
                    <div class="dashboard-progress mt-4">
                        <p class="mb-2">Un Subscribed user</p>
                        <!-- <div class="progress" style="height: 10px;">
                            <div class="progress-bar" style="width:20%; height: 10px;"></div>
                        </div> -->
                    </div>
                </div>
            </div>
        </div>
        <!-- <div class="row mt-4">
            <div class="col-md-8">
                <div class="dashboard-box h-100 p-4 bg-white">
                    <div class="row align-items-center">
                        <div class="col-lg-9 col-md-9 col-6">
                            <h5 class="mb-0">Revenue</h5>
                        </div>
                        <div class="col-lg-3 col-md-3 col-6">
                            <select class="form-control form-select" name="yearly" id="yearly">
                                <option value="yearly">Yearly</option>
                            </select>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div id="chartdiv1" class="mt-4"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mt-lg-0 mt-md-0 mt-4">
                <div class="dashboard-box h-100 p-4 bg-white">
                    <div class="row align-items-center">
                        <div class="col-md-12">
                            <h5 class="mb-0">Subjects Information</h5>
                        </div>
                    </div>
                    <div id="chartdiv" class="mt-4"></div>
                </div>
            </div>
        </div>
        <div class="row mt-4">
            <div class="col-md-6">
                <div class="dashboard-box h-100 p-4 bg-white">
                    <div class="row align-items-center">
                        <div class="col-lg-9 col-md-9 col-6">
                            <h5 class="mb-0">New User</h5>
                        </div>
                        <div class="col-lg-3 col-md-3 col-6">
                            <select class="form-control form-select" name="yearly" id="yearly">
                                <option value="yearly">Yearly</option>
                            </select>
                        </div>
                    </div>
                    <div id="chartdiv2" class="mt-4"></div>
                </div>
            </div>
            <div class="col-md-6 mt-lg-0 mt-md-0 mt-4">
                <div class="dashboard-box h-100 p-4 bg-white">
                    <div class="row align-items-center">
                        <div class="col-lg-9 col-md-9 col-9">
                            <h5 class="mb-0">Subjects Information</h5>
                        </div>
                        <div class="col-lg-3 col-md-3 col-3 text-end">
                            <a href="#" class="text-decoration-none">View all</a>
                        </div>
                    </div>
                    <div class="row mt-4">
                        <div class="col-md-12">
                            <div class="table-responsive user-table">
                                <table class="table table-striped">
                                    <thead class="border-bottom">
                                        <tr>
                                            <th>Sr No.</th>
                                            <th>User Name</th>
                                            <th>Plan Type</th>
                                            <th>Amount</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>01</td>
                                            <td><img src="img/user1.png" alt=""> Brooklyn Simmons</td>
                                            <td>Pre plan</td>
                                            <td>$ 20.00</td>
                                        </tr>
                                        <tr>
                                            <td>02</td>
                                            <td><img src="img/user2.png" alt=""> Theresa Webb</td>
                                            <td>Pre plan</td>
                                            <td>$ 20.00</td>
                                        </tr>
                                        <tr>
                                            <td>03</td>
                                            <td><img src="img/user3.png" alt=""> Floyd Miles</td>
                                            <td>Pre plan</td>
                                            <td>$ 20.00</td>
                                        </tr>
                                        <tr>
                                            <td>04</td>
                                            <td><img src="img/user4.png" alt=""> Jacob Jones</td>
                                            <td>Pre plan</td>
                                            <td>$ 20.00</td>
                                        </tr>
                                        <tr>
                                            <td>05</td>
                                            <td><img src="img/user5.png" alt=""> Savannah Nguyen</td>
                                            <td>Pre plan</td>
                                            <td>$ 20.00</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div> -->
    </div>
</div>

@endsection