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