<?php
if(@$plan) {
    if(@($plan->active)) {
        if (@($plan->walk->active)) {
        ?>
            <div class="mb-1 d-flex align-items-baseline">
                <span><?= @($plan->walk->intensity) ?: '-' ?> Walk</span>
                <span class="ml-2 text-sm"><?= @($plan->walk->frequency) ?: '-' ?> day(s)/week</span>
                <span class="ml-2 text-sm"><?= @($plan->walk->time) ?: '-' ?> min(s)/day</span>
            </div>
        <?php
        }
        if (@($plan->jog->active)) {
            ?>
            <div class="mb-1 d-flex align-items-baseline">
                <span><?= @($plan->jog->intensity) ?: '-' ?> Jog</span>
                <span class="ml-2 text-sm"><?= @($plan->jog->frequency) ?: '-' ?> day(s)/week</span>
                <span class="ml-2 text-sm"><?= @($plan->jog->time) ?: '-' ?> min(s)/day</span>
            </div>
            <?php
        }
        if (@($plan->elliptical->active)) {
            ?>
            <div class="mb-1 d-flex align-items-baseline">
                <span><?= @($plan->elliptical->intensity) ?: '-' ?> Elliptical</span>
                <span class="ml-2 text-sm"><?= @($plan->elliptical->frequency) ?: '-' ?> day(s)/week</span>
                <span class="ml-2 text-sm"><?= @($plan->elliptical->time) ?: '-' ?> min(s)/day</span>
            </div>
            <?php
        }
        if (@($plan->swim->active)) {
            ?>
            <div class="mb-1 d-flex align-items-baseline">
                <span><?= @($plan->swim->intensity) ?: '-' ?> Swim</span>
                <span class="ml-2 text-sm"><?= @($plan->swim->frequency) ?: '-' ?> day(s)/week</span>
                <span class="ml-2 text-sm"><?= @($plan->swim->time) ?: '-' ?> min(s)/day</span>
            </div>
            <?php
        }
        if (@($plan->bike->active)) {
            ?>
            <div class="mb-1 d-flex align-items-baseline">
                <span><?= @($plan->bike->intensity) ?: '-' ?> Bike</span>
                <span class="ml-2 text-sm"><?= @($plan->bike->frequency) ?: '-' ?> day(s)/week</span>
                <span class="ml-2 text-sm"><?= @($plan->bike->time) ?: '-' ?> min(s)/day</span>
            </div>
            <?php
        }
    }
    ?>
    <div class="text-secondary"><?= @($plan->memo) ?: '' ?></div>
    <?php
}
else {
    ?> - <?php
}
?>

