<div class="container-fluid" style="padding: 20px;">
    <div class="card" style="background:#fff; border-radius:10px; box-shadow:0 5px 15px rgba(0,0,0,0.1);">
        <div class="card-header" style="padding:15px; border-bottom:1px solid #eee;">
            <h3 style="margin:0;"><i class="fa fa-terminal"></i> Advance Home Updates Manager</h3>
        </div>
        <div class="card-body" style="padding:20px;">
            <?php if(isset($success)) echo "<div class='alert alert-success'>$success</div>"; ?>
            <form method="post">
                <div class="form-group">
                    <label><strong>Status:</strong></label>
                    <input type="checkbox" name="is_active" <?= ($data['is_active'] == 1) ? 'checked' : '' ?> data-toggle="toggle"> Show on Home Page
                </div>
                <div class="form-group">
                    <label><strong>Content:</strong></label>
                    <textarea name="content" class="form-control" rows="8"><?= htmlspecialchars($data['content']) ?></textarea>
                </div>
                <button type="submit" name="save" class="btn btn-success btn-lg">Save & Deploy</button>
            </form>
            
            <hr>
            <p class="text-muted">Last Modified: <b><?= $data['updated_at'] ?? 'Never' ?></b></p>
        </div>
    </div>
</div>