<div class="content">
    <div class="card shadow-sm">
        <div class="card-header bg-success text-white">
            <h5 class="mb-0"><i class="fas fa-check-circle"></i> Migration Completed Successfully!</h5>
        </div>
        <div class="card-body">
            <div class="alert alert-success">
                <i class="fas fa-check"></i> Migration completed for <strong><?= htmlspecialchars($company->company_name) ?></strong> (ID: <?= $company->id ?>)
            </div>

            <h6 class="mt-4">Migration Summary:</h6>
            <table class="table table-bordered">
                <thead class="table-light">
                    <tr>
                        <th>Table</th>
                        <th>Records Migrated</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><i class="fas fa-building"></i> company_authorities</td>
                        <td><span class="badge bg-primary"><?= $results['authorities'] ?></span></td>
                    </tr>
                    <tr>
                        <td><i class="fas fa-file-alt"></i> company_documents</td>
                        <td><span class="badge bg-primary"><?= $results['documents'] ?></span></td>
                    </tr>
                    <tr>
                        <td><i class="fas fa-folder-open"></i> company_document_heads</td>
                        <td><span class="badge bg-primary"><?= $results['document_heads'] ?></span></td>
                    </tr>
                    <tr>
                        <td><i class="fas fa-list-check"></i> company_mandatory_documents</td>
                        <td><span class="badge bg-primary"><?= $results['mandatory_documents'] ?></span></td>
                    </tr>
                    <tr>
                        <td><i class="fas fa-bell"></i> company_document_head_reminders</td>
                        <td><span class="badge bg-primary"><?= $results['reminders'] ?></span></td>
                    </tr>
                    <tr>
                        <td><i class="fas fa-upload"></i> uploaded_documents (updated)</td>
                        <td><span class="badge bg-info"><?= $results['uploaded_documents'] ?></span></td>
                    </tr>
                </tbody>
            </table>

            <div class="mt-4">
                <a href="<?= base_url('migration') ?>" class="btn btn-secondary">
                    <i class="fas fa-arrow-left"></i> Back to Migration Tool
                </a>
                <a href="<?= base_url('dashboard') ?>" class="btn btn-primary">
                    <i class="fas fa-tachometer-alt"></i> Go to Dashboard
                </a>
            </div>
        </div>
    </div>
</div>

