<?php if(!empty($article->main_traffic_line) and !empty($article->main_traffic_station) and ($article->main_traffic==1 and !empty($article->main_traffic_time) or $article->main_traffic==2 and (!empty($article->main_traffic_bus_time) or !empty($article->main_traffic_bus_walk)))): ?>
    <?php echo e($article->main_traffic_line?? "-"); ?>「<?php echo e($article->main_traffic_station?? "-"); ?>」駅　
    <?php if($article->main_traffic == 2): ?>
        <?php if($article->main_traffic_bus_time): ?>
            <br />バス<?php echo e($article->main_traffic_bus_time?? "-"); ?>分
        <?php endif; ?>
        <?php if($article->main_traffic_bus): ?>
            <span class="no_print">「<?php echo e($article->main_traffic_bus); ?>」</span>
        <?php endif; ?>
        <?php if($article->main_traffic_bus_walk): ?>
            停歩<?php echo e($article->main_traffic_bus_walk?? "-"); ?>分
        <?php endif; ?>
    <?php else: ?>
        徒歩<?php echo e($article->main_traffic_time?? "-"); ?>分
    <?php endif; ?>
    <?php if(isset($article->sub_traffic1_station) && !empty($article->sub_traffic1_line) and !empty($article->sub_traffic1_station) and ($article->sub_traffic1==1 and !empty($article->sub_traffic1_time) or $article->sub_traffic1==2 and (!empty($article->sub_traffic1_bus_time) or !empty($article->sub_traffic1_bus_walk)))): ?>
        <br/><?php echo e($article->sub_traffic1_line); ?>「<?php echo e($article->sub_traffic1_station); ?>」駅　
        <?php if($article->sub_traffic1 == 2): ?>
            <?php if($article->sub_traffic1_bus_time): ?>
                バス<?php echo e($article->sub_traffic1_bus_time?? "-"); ?>分
            <?php endif; ?>
            <?php if($article->sub_traffic1_bus): ?>
                「<?php echo e($article->sub_traffic1_bus); ?>」
            <?php endif; ?>
            <?php if($article->sub_traffic1_bus_walk): ?>
                停歩<?php echo e($article->sub_traffic1_bus_walk?? "-"); ?>分
            <?php endif; ?>
        <?php else: ?>
            徒歩<?php echo e($article->sub_traffic1_time?? "-"); ?>分
        <?php endif; ?>
    <?php endif; ?>

    <?php if(isset($article->sub_traffic2_station) && !empty($article->sub_traffic2_line) and !empty($article->sub_traffic2_station) and ($article->sub_traffic2==1 and !empty($article->sub_traffic2_time) or $article->sub_traffic2==2 and (!empty($article->sub_traffic2_bus_time) or !empty($article->sub_traffic2_bus_walk)))): ?>
        <br/><?php echo e($article->sub_traffic2_line); ?>「<?php echo e($article->sub_traffic2_station); ?>」駅　
        <?php if($article->sub_traffic2 == 2): ?>
            <?php if($article->sub_traffic2_bus_time): ?>
                バス<?php echo e($article->sub_traffic2_bus_time?? "-"); ?>分
            <?php endif; ?>
            <?php if($article->sub_traffic2_bus): ?>
                「<?php echo e($article->sub_traffic2_bus); ?>」
            <?php endif; ?>
            <?php if($article->sub_traffic2_bus_walk): ?>
                停歩<?php echo e($article->sub_traffic2_bus_walk?? "-"); ?>分
            <?php endif; ?>
        <?php else: ?>
            徒歩<?php echo e($article->sub_traffic2_time?? "-"); ?>分
        <?php endif; ?>
    <?php endif; ?>

<?php elseif(isset($article->else_traffic_station) && !empty($article->else_traffic_line) and !empty($article->else_traffic_station) and ($article->else_traffic==1 and !empty($article->else_traffic_time) or $article->else_traffic==2 and (!empty($article->else_traffic_bus_time) or !empty($article->else_traffic_bus_walk)))): ?>
    <?php echo e($article->else_traffic_line ?? "-"); ?>「<?php echo e($article->else_traffic_station ?? "-"); ?>」駅　
    <?php if($article->else_traffic == 2): ?>
        <?php if($article->else_traffic_bus_time): ?>
            <br />バス<?php echo e($article->else_traffic_bus_time?? "-"); ?>分
        <?php endif; ?>
        <?php if($article->else_traffic_bus): ?>
            <span class="no_print">「<?php echo e($article->else_traffic_bus?? "-"); ?>」</span>
        <?php endif; ?>
        <?php if($article->else_traffic_bus_walk): ?>
            停歩<?php echo e($article->else_traffic_bus_walk?? "-"); ?>分
        <?php endif; ?>
    <?php else: ?>
        徒歩<?php echo e($article->else_traffic_time?? "-"); ?>分
    <?php endif; ?>

<?php endif; ?>

<?php if(isset($article->else_traffic_station) && !empty($article->else_traffic_line) and !empty($article->else_traffic_station) and ($article->else_traffic==1 and !empty($article->else_traffic_time) or $article->else_traffic==2 and (!empty($article->else_traffic_bus_time) or !empty($article->else_traffic_bus_walk)))): ?>
    <br /><?php echo e($article->else_traffic_line ?? "-"); ?>「<?php echo e($article->else_traffic_station ?? "-"); ?>」駅　
    <?php if($article->else_traffic == 2): ?>
        <?php if($article->else_traffic_bus_time): ?>
            バス<?php echo e($article->else_traffic_bus_time?? "-"); ?>分
        <?php endif; ?>
        <?php if($article->else_traffic_bus): ?>
            「<?php echo e($article->else_traffic_bus?? "-"); ?>」
        <?php endif; ?>
        <?php if($article->else_traffic_bus_walk): ?>
            停歩<?php echo e($article->else_traffic_bus_walk?? "-"); ?>分
        <?php endif; ?>
    <?php else: ?>
        徒歩<?php echo e($article->else_traffic_time?? "-"); ?>分
    <?php endif; ?>

<?php endif; ?>
