Commit dcd26dfe authored by Mahmoud Aglan's avatar Mahmoud Aglan

Show original membership date instead of record creation date

The date under the status badge now uses membership_origin_date
(the original first-ever date of the membership) instead of
created_at (which for death/waiver transfers is just when the
new record was created). Falls back to activated_at then created_at.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent ab834992
...@@ -132,7 +132,7 @@ $canEdit = can('member.edit') && (!$isLocked || ($isSuperAdmin ?? false)); ...@@ -132,7 +132,7 @@ $canEdit = can('member.edit') && (!$isLocked || ($isSuperAdmin ?? false));
</div> </div>
<div style="text-align:left;"> <div style="text-align:left;">
<span style="display:inline-block;padding:6px 16px;border-radius:20px;font-weight:700;font-size:14px;color:#fff;background:<?= $statusColor ?>;"><?= e($statusLabel) ?></span> <span style="display:inline-block;padding:6px 16px;border-radius:20px;font-weight:700;font-size:14px;color:#fff;background:<?= $statusColor ?>;"><?= e($statusLabel) ?></span>
<div style="margin-top:10px;font-size:12px;color:#9CA3AF;">تاريخ: <?= e(substr($member->created_at, 0, 10)) ?></div> <div style="margin-top:10px;font-size:12px;color:#9CA3AF;">تاريخ: <?= e(substr($member->membership_origin_date ?? $member->activated_at ?? $member->created_at, 0, 10)) ?></div>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment