<?php if (!empty($payment_methods)) { ?>
    <?php foreach ($payment_methods as $code => $pm) { ?>
        <?php $checked = $pm['checked']; ?>
        <?php $title = $pm['title']; ?>
        <?php $image = $images[$code]['image']; ?>
        <div class="payment_method <?= $code; ?>">
            <div class="radio-input radio">
                <label for="<?= $code; ?>"><input name="payment_method" onchange="set_payment_method($(this));" value="<?= $code; ?>" id="<?= $code; ?>" <?= $checked ? 'checked="checked"' : '';?> type="radio"><span class="title"><?= !empty($image) ? '<img class="payment_method_image" src="'.$image.'">' : ''; ?><?= $title; ?></span></label>
            </div>
        </div>
    <?php } ?>

    <?php if(!empty($method_chossed)) { ?>
        <script type="text/javascript">
            _complete_step('payment');
        </script>
    <?php } ?>
<?php } else { ?>

    <div class="poc_alert poc_alert-warning"><?= $poc_icon_error; ?> <?= $error_no_payment; ?></div>

    <script type="text/javascript">
        _uncomplete_step('payment');
    </script>
<?php } ?>