<h5>Organization Updates</h5>
<?php if (!empty($organizationUpdates)): ?>
    <div class="list-group">
        <?php foreach ($organizationUpdates as $update): ?>
            <div class="list-group-item">
                <div class="d-flex w-100 justify-content-between">
                    <h6 class="mb-1"><?= $update->title ?></h6>
                    <small><?= date('d M Y', strtotime($update->created_at)) ?></small>
                </div>
                <p class="mb-1"><?= character_limiter($update->content, 120) ?></p>
                <small class="text-muted">Posted by: <?= $update->author_name ?></small>
            </div>
        <?php endforeach; ?>
    </div>
<?php else: ?>
    <div class="alert alert-warning">No organization updates</div>
<?php endif; ?>