<?php

/**
 * @var Collection<string> $shares
 * @var string             $title
 */

use Illuminate\Support\Collection;

?>
<div class="modal fade" id="wt-shares-modal" tabindex="-1" role="dialog" aria-label="<?= e($title) ?>" aria-hidden="true">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <?= view('modals/header', ['title' => $title]) ?>

            <div class="modal-body">
                <div class="wt-share-list">
                    <?php foreach ($shares as $share): ?>
                        <div class="wt-share-item">
                            <?= $share ?>
                        </div>
                    <?php endforeach ?>
                </div>
            </div>

            <?= view('modals/footer-close') ?>
        </div>
    </div>
</div>
