<h2>Доступные заказы</h2>

<?php foreach ($deliveries as $delivery): ?>
    <div class="card mb-3">
        <div class="card-body">
            <b>Заказ #<?= $delivery->order_id ?></b><br>
            Ресторан: <?= $delivery->order->restaurant->name ?><br>
            Адрес: <?= $delivery->delivery_address ?><br>

            <a href="<?= \yii\helpers\Url::to(['take', 'id' => $delivery->id]) ?>"
               class="btn btn-success mt-2">
                Взять заказ
            </a>
        </div>
    </div>
<?php endforeach; ?>
