<?php

declare(strict_types=1);

use Illuminate\Support\Collection;

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

?>
<div class="modal fade" data-bs-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true" id="wt-shares-modal" aria-label="<?= e($title) ?>">
    <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>
