@extends('layouts.admin')

@section('title', 'Dashboard')
@section('page-title', 'Dashboard')

@section('content')
    <div class="row">
        @foreach($cards as $card)
            <div class="col-xl-3 col-md-6">
                <div class="card card-animate">
                    <div class="card-body">
                        <div class="d-flex align-items-center">
                            <div class="flex-grow-1 overflow-hidden">
                                <p class="text-uppercase fw-medium text-muted text-truncate mb-0">{{ $card['title'] }}</p>
                            </div>
                        </div>
                        <div class="d-flex align-items-end justify-content-between mt-4">
                            <div>
                                <h4 class="fs-22 fw-semibold ff-secondary mb-4">{{ $card['value'] }}</h4>
                                <span class="badge bg-success-subtle text-success mb-0">{{ $card['hint'] }}</span>
                            </div>
                            <div class="avatar-sm flex-shrink-0">
                                <span class="avatar-title bg-primary-subtle rounded fs-3">
                                    <i class="ri-money-rupee-circle-line text-primary"></i>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        @endforeach
    </div>

    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header align-items-center d-flex">
                    <h4 class="card-title mb-0 flex-grow-1">Implementation Roadmap</h4>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-borderless table-nowrap align-middle mb-0">
                            <thead class="table-light">
                                <tr>
                                    <th>Phase</th>
                                    <th>Module</th>
                                    <th>Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Phase 1</td>
                                    <td>Master data and tax setup</td>
                                    <td><span class="badge bg-warning-subtle text-warning">In Progress</span></td>
                                </tr>
                                <tr>
                                    <td>Phase 2</td>
                                    <td>Sales, quotations, and invoicing</td>
                                    <td><span class="badge bg-secondary-subtle text-secondary">Pending</span></td>
                                </tr>
                                <tr>
                                    <td>Phase 3</td>
                                    <td>Purchase, expenses, and stock</td>
                                    <td><span class="badge bg-secondary-subtle text-secondary">Pending</span></td>
                                </tr>
                                <tr>
                                    <td>Phase 4</td>
                                    <td>GST reports, ledgers, and exports</td>
                                    <td><span class="badge bg-secondary-subtle text-secondary">Pending</span></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
