@if ($addresses)
    @foreach ($addresses ?? [] as $address)
        <div class="row mb-3">
            <div class="col-1">
                @include('components.form.radios.icheck', [
                    'name' => 'address_id',
                    'val' => $address['id'],
                    'id' => 'address_' . $address['id'],
                    'value' => count($addresses) === 1 ? $address['id'] : false,
                ])
            </div>
            <div class="col-11">
                {{ $address['name'] }}<br />
                {{ $address['address'] }}<br />
                @if ($address['address2'])
                    {{ $address['address2'] }}<br />
                @endif
                {{ $address['zipcode'] }} {{ $address['city'] }}<br />
            </div>
        </div>
    @endforeach
@endif
