This is most likely fungal nail infection (onychomycosis) precipitated by
diabetes, not just diabetic nail damage. Proper antifungal treatment + nail care will lead to recovery
Next Steps
Keep nails short and clean
Wash feet daily, dry well (especially between toes)
Change socks daily, avoid tight footwear