<?php
$spouses = $spouses ?? [];
$children = $children ?? [];
$temporary = $temporary ?? [];
?>
<div style="margin-bottom:20px;">
    <h4 style="color:#0D7377;">الزوجات (<?= count($spouses) ?>)</h4>
    <?php if (empty($spouses)): ?>
        <p style="color:#6B7280;">لا توجد زوجات مسجلة</p>
    <?php endif; ?>
</div>
<div style="margin-bottom:20px;">
    <h4 style="color:#0D7377;">الأبناء (<?= count($children) ?>)</h4>
    <?php if (empty($children)): ?>
        <p style="color:#6B7280;">لا يوجد أبناء</p>
    <?php endif; ?>
</div>