// lib/features/admin/tabs/staff_housing/verified_housing_sub_tab.dart

import 'package:flutter/material.dart';

class VerifiedHousingSubTab extends StatefulWidget {
  const VerifiedHousingSubTab({super.key});

  @override
  State<VerifiedHousingSubTab> createState() => _VerifiedHousingSubTabState();
}

class _VerifiedHousingSubTabState extends State<VerifiedHousingSubTab> {
  static const Color _darkGreen = Color.fromARGB(255, 2, 105, 48);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.transparent,
      floatingActionButton: FloatingActionButton.extended(
        onPressed: () {}, // Add logic to add a new property
        backgroundColor: _darkGreen,
        elevation: 0,
        shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)), // Flat UI
        icon: const Icon(Icons.add_business_rounded, color: Colors.white),
        label: const Text('ADD PROPERTY', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, letterSpacing: 1.0)),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Container(
              padding: const EdgeInsets.all(24),
              decoration: BoxDecoration(color: Colors.white, shape: BoxShape.rectangle, border: Border.all(color: Colors.grey.shade200, width: 2)),
              child: Icon(Icons.domain_disabled_rounded, size: 64, color: Colors.grey.shade300),
            ),
            const SizedBox(height: 24),
            Text('No Verified Properties', style: TextStyle(fontSize: 22, fontWeight: FontWeight.w900, color: Colors.grey.shade400, letterSpacing: 1.0)),
            const SizedBox(height: 8),
            Text('There are currently no verified housing options in the directory.', style: TextStyle(color: Colors.grey.shade500, fontSize: 15)),
          ],
        ),
      ),
    );
  }
}