@extends('layouts.master')

@section('title', 'Dashboard')

@section('content')

<div class="hero-banner p-4 mb-4">
    <h3>Dashboard</h3>
</div>

<!-- <div class="row"> -->
    <!-- <div class="hero-banner p-4 mb-4 d-flex justify-content-between align-items-center">
        <div class="w-50">
            <h3 class="fw-bold mb-3">Base ERP Workstation <span class="badge bg-primary fs-6 align-middle ms-2" style="background-color: #5c4df0 !important;">ACTIVE</span></h3>
            <p class="text-secondary mb-0" style="font-size: 0.95rem; line-height: 1.6;">
                Welcome to Nexus-ERP base mockup. This screen loads aggregated statistics computed React state modifications (Customer Directory alterations, invoices creations, etc.) instantly.
            </p>
        </div>
        <div class="d-flex gap-3">
            <button class="btn text-white fw-bold d-flex align-items-center px-4" style="background-color: #5c4df0; border-radius: 8px;" id="seedBtn">
                <i class="bi bi-stars me-2"></i> Seed Demo Records
            </button>
            <button class="btn btn-outline-secondary text-white fw-bold d-flex align-items-center px-4" style="border-radius: 8px; border-color: #5a617a;">
                <i class="bi bi-plus-square me-2"></i> New Record Form
            </button>
        </div>
    </div>
 -->
    <div class="row g-4 mb-4">
        <div class="col-xl-3 col-md-6">
            <div class="card stat-card h-100 p-3 border-0">
                <div class="d-flex justify-content-between">
                    <div class="text-secondary fw-bold" style="font-size: 0.75rem; letter-spacing: 0.5px;">SMS Clients</div>
                    <div class="stat-icon bg-success bg-opacity-10 text-success"><i class="bi bi-chat-dots"></i></div>
                </div>
                <h2 class="fw-bold mt-2 mb-3">150</h2>
                <div class="d-flex align-items-center mt-auto" style="font-size: 0.8rem;">
                    <span class="text-success fw-bold"><i class="bi bi-arrow-up-right me-1"></i>+1.4%</span>
                    <span class="text-secondary ms-2">quarter over quarter</span>
                </div>
            </div>
        </div>
        <div class="col-xl-3 col-md-6">
            <div class="card stat-card h-100 p-3 border-0">
                <div class="d-flex justify-content-between">
                    <div class="text-secondary fw-bold" style="font-size: 0.75rem; letter-spacing: 0.5px;">USSD Clients</div>
                    <div class="stat-icon bg-primary bg-opacity-10 text-primary" style="color: #5c4df0 !important;"><i class="bi bi-phone"></i></div>
                </div>
                <h2 class="fw-bold mt-2 mb-3">50</h2>
                <div class="d-flex align-items-center justify-content-between mt-auto" style="font-size: 0.8rem;">
                    <span class="text-primary fw-bold" style="color: #5c4df0 !important;">4 new clients</span>
                    <span class="text-secondary">recent engagement result</span>
                </div>
            </div>
        </div>
        <div class="col-xl-3 col-md-6">
            <div class="card stat-card h-100 p-3 border-0">
                <div class="d-flex justify-content-between">
                    <div class="text-secondary fw-bold" style="font-size: 0.75rem; letter-spacing: 0.5px;">Voice Clients</div>
                    <div class="stat-icon bg-warning bg-opacity-10 text-warning"><i class="bi bi-megaphone"></i></div>
                </div>
                <h2 class="fw-bold mt-2 mb-3">10</h2>
                <div class="d-flex align-items-center mt-auto" style="font-size: 0.8rem;">
                    <span class="text-warning fw-bold">Darwin System</span>
                    <span class="text-secondary ms-3 lh-sm" style="font-size: 0.7rem;">Newly Acquired <br>client</span>
                </div>
            </div>
        </div>
        <div class="col-xl-3 col-md-6">
            <div class="card stat-card h-100 p-3 border-0">
                <div class="d-flex justify-content-between">
                    <div class="text-secondary fw-bold" style="font-size: 0.75rem; letter-spacing: 0.5px;">Airtime Clients</div>
                    <div class="stat-icon bg-danger bg-opacity-10 text-danger"><i class="bi bi-telephone-plus"></i></div>
                </div>
                <h2 class="fw-bold mt-2 mb-3">15</h2>
                <div class="d-flex align-items-center mt-auto" style="font-size: 0.8rem;">
                    <span class="text-success fw-bold"><i class="bi bi-circle-fill me-1" style="font-size: 0.5rem;"></i>Healthy</span>
                    <span class="text-secondary ms-3">Average bill secons: 3.5 mins</span>
                </div>
            </div>
        </div>
    </div>

    <div class="row g-4">
        <div class="col-lg-8">
            <div class="card stat-card border-0 p-4 h-100">
                <div class="d-flex justify-content-between align-items-start mb-4">
                    <div>
                        <h6 class="fw-bold mb-1">Revenue Projections Trend</h6>
                        <p class="text-secondary mb-0" style="font-size: 0.85rem;">Demonstrating visual charts using pure responsive vector layouts</p>
                    </div>
                    <div class="d-flex gap-3" style="font-size: 0.85rem;">
                        <span class="d-flex align-items-center"><i class="bi bi-circle-fill text-primary me-2" style="font-size: 0.5rem;"></i> Sales Target</span>
                        <span class="d-flex align-items-center text-secondary"><i class="bi bi-circle-fill me-2" style="font-size: 0.5rem; color: #d1d5db;"></i> Prior Year</span>
                    </div>
                </div>
                <div class="w-100 mt-auto position-relative" style="height: 200px;">
                    <svg viewBox="0 0 800 200" class="w-100 h-100" preserveAspectRatio="none">
                        <path d="M0,180 Q200,220 400,100 T800,20" fill="none" stroke="#e0e0e0" stroke-width="2" stroke-dasharray="5,5"/>
                        <path d="M0,200 Q200,220 400,160 T800,0" fill="none" stroke="#5c4df0" stroke-width="4"/>
                        <circle cx="400" cy="160" r="6" fill="#5c4df0" stroke="white" stroke-width="2"/>
                        <circle cx="600" cy="50" r="6" fill="#5c4df0" stroke="white" stroke-width="2"/>
                    </svg>
                </div>
            </div>
        </div>
        
        <div class="col-lg-4">
            <div class="card stat-card border-0 p-4 h-100">
                <h6 class="fw-bold mb-1">Department Distribution</h6>
                <p class="text-secondary mb-4" style="font-size: 0.85rem;">Ratio of active records grouped by segment</p>
                
                <div class="mb-3">
                    <div class="d-flex justify-content-between align-items-center mb-1" style="font-size: 0.85rem;">
                        <span class="fw-bold"><i class="bi bi-circle-fill me-2" style="font-size: 0.5rem; color: #5c4df0;"></i> Finance</span>
                        <span class="text-secondary">1 (25%)</span>
                    </div>
                    <div class="progress progress-slim">
                        <div class="progress-bar" role="progressbar" style="width: 25%; background-color: #5c4df0;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                </div>
                
                <div class="mb-3">
                    <div class="d-flex justify-content-between align-items-center mb-1" style="font-size: 0.85rem;">
                        <span class="fw-bold"><i class="bi bi-circle-fill me-2" style="font-size: 0.5rem; color: #10b981;"></i> Operations</span>
                        <span class="text-secondary">1 (25%)</span>
                    </div>
                    <div class="progress progress-slim">
                        <div class="progress-bar" role="progressbar" style="width: 25%; background-color: #10b981;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                </div>

                <div class="mb-3">
                    <div class="d-flex justify-content-between align-items-center mb-1" style="font-size: 0.85rem;">
                        <span class="fw-bold"><i class="bi bi-circle-fill me-2" style="font-size: 0.5rem; color: #f59e0b;"></i> Sales</span>
                        <span class="text-secondary">1 (25%)</span>
                    </div>
                    <div class="progress progress-slim">
                        <div class="progress-bar" role="progressbar" style="width: 25%; background-color: #f59e0b;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                </div>

                <div class="mb-3">
                    <div class="d-flex justify-content-between align-items-center mb-1" style="font-size: 0.85rem;">
                        <span class="fw-bold"><i class="bi bi-circle-fill me-2" style="font-size: 0.5rem; color: #ef4444;"></i> Marketing</span>
                        <span class="text-secondary">0 (0%)</span>
                    </div>
                    <div class="progress progress-slim">
                        <div class="progress-bar" role="progressbar" style="width: 0%; background-color: #ef4444;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>


@endsection