<?php if($item->property == null): ?>
    <?php switch($dataLand->land_right):
        case (0): ?>
        <?php break; ?>
        <?php case (1): ?>
        <?php break; ?>
        <?php case (2): ?>
        <?php case (3): ?>
        <br>
        <span>
        借地権種別：<?php echo e(getLeaseholdKind($dataLand->leasehold_kind)); ?>

    </span>
        <?php break; ?>
    <?php endswitch; ?>
        <br>
        <span>
        地代：
        <?php if($item->land_rent == 1): ?>
                <?php echo e($item->land_rent_val); ?>円/
                <?php
                    $landUnits = ["", "月", "年", "一括"];
                ?>
                <?php echo e($landUnits[$item->land_rent_unit] ?? ""); ?>

            <?php else: ?>
                無
            <?php endif; ?>
    </span>
    <?php switch($dataLand->land_right):
        case (0): ?>
        <?php break; ?>
        <?php case (1): ?>
        <?php break; ?>
        <?php case (2): ?>
        <?php case (3): ?>
        <br>
        <span>
        借地期間：<?php echo e($dataLand->leasehold_period == 1 ? "残存" : "新規"); ?> (<?php echo e($item->leasehold_period_year); ?>年<?php echo e($item->leasehold_period_month); ?>ヶ月)
    </span>
        <br>
        <span>
        権利金：
        <?php if($dataLand->right_cost == 0): ?>
                無
            <?php else: ?>
                有(価格に含む) (<?php echo e($dataLand->right_cost_val); ?>万円)
            <?php endif; ?>
    </span>
        <br>
        <span>
        保証金：
        <?php if($dataLand->deposit_cost == 0): ?>
                無
            <?php else: ?>
                有 (<?php echo e($dataLand->deposit_cost_val); ?>万円)
            <?php endif; ?>
    </span>
        <br>
        <span>
        敷金：
        <?php if($dataLand->security_deposit_cost == 0): ?>
                無
            <?php else: ?>
                有 (<?php echo e($dataLand->security_deposit_cost_val); ?>万円)
            <?php endif; ?>
    </span>
        <br>
        <span>
        借地権その他契約事項：<?php echo e($dataLand->other_leasehold); ?>

    </span>
        <br>
        <?php if($dataLand->land_right == 3): ?>
            <span>
            借地権割合：<?php echo e($dataLand->leasehold_rate); ?>%
        </span>
            <br>
        <?php endif; ?>
        <?php
            $isMore = [3, 4, 7, 8];
        ?>
        <?php if(in_array($dataLand->leasehold_kind, $isMore)): ?>
            <span>
            <?php
                $registrationsText = ["未選択", "可", "不可", "相談"];
            ?>
            定期借地権設定登記：<?php echo e($registrationsText[$dataLand->regular_leased_registration] ?? ""); ?>

        </span>
            <br>
            <span>
            <?php
                $seasonsText = ["未選択", "一定期間毎", "事前協議により決定"];
            ?>
            定期借地権賃料改定時期：<?php echo e($seasonsText[$dataLand->regular_leased_season] ?? ""); ?>

                <?php echo e($dataLand->regular_leased_season == 1 ? $dataLand->regular_leased_season_nen . "年毎" : ""); ?>

        </span>
            <br>
            <span>
            <?php
                $costsText = ["未選択", "公式", "事前協議により決定"];
            ?>
            定期借地権賃料改定額：<?php echo e($costsText[$dataLand->regular_leased_cost] ?? ""); ?>

        </span>
            <br>
            <span>
            <?php
                $transfersText = ["未選択", "可", "不可"];
            ?>
            定期借地権譲渡転貸：<?php echo e($transfersText[$dataLand->regular_leased_transfer] ?? ""); ?>

                <?php if($dataLand->regular_leased_transfer == 1): ?>
                    <br>
                    <span>
                    <?php
                        $transferMethodsText = ["未選択", "承諾不要", "通知要", "承諾要"];
                    ?>
                    &nbsp;&nbsp;&nbsp;承諾要否・方法：<?php echo e($transferMethodsText[$dataLand->regular_leased_transfer_method]); ?>

                </span>
                    <br>
                    <span>
                    <?php
                        $transferNecessitiesText = ["未選択", "要", "不要", "未定"];
                    ?>
                    &nbsp;&nbsp;&nbsp;承諾料要否：<?php echo e($transferNecessitiesText[$dataLand->regular_leased_transfer_necessity]); ?>

                </span>
                    <br>
                    <span>
                    <?php
                        $transferConsentsText = ["未選択", "地主", "転貸主"];
                    ?>
                    &nbsp;&nbsp;&nbsp;承諾者：<?php echo e($transferConsentsText[$dataLand->regular_leased_transfer_consent]); ?>

                </span>
                <?php endif; ?>
        </span>
            <br>
        <?php endif; ?>
        <?php break; ?>
    <?php endswitch; ?>
<?php else: ?>
<?php switch($dataLand->land_right):
    case (0): ?>
    <?php break; ?>
    <?php case (1): ?>
    <?php break; ?>
    <?php case (2): ?>
    <?php case (3): ?>
    <br>
    <span>
        借地権種別：<?php echo e(getLeaseholdKind($dataLand->leasehold_kind)); ?>

    </span>
    <br>
    <span>
        地代：
        <?php if($item->land_rent == 1): ?>
            <?php echo e($item->land_rent_val); ?>円/
            <?php
                $landUnits = ["", "月", "年", "一括"];
            ?>
            <?php echo e($landUnits[$item->land_rent_unit] ?? ""); ?>

        <?php else: ?>
            無
        <?php endif; ?>
    </span>
    <br>
    <span>
        借地期間：<?php echo e($dataLand->leasehold_period == 1 ? "残存" : "新規"); ?> (<?php echo e($item->leasehold_period_year); ?>年<?php echo e($item->leasehold_period_month); ?>ヶ月)
    </span>
    <br>
    <span>
        権利金：
        <?php if($dataLand->right_cost == 0): ?>
            無
        <?php else: ?>
            有(価格に含む) (<?php echo e($dataLand->right_cost_val); ?>万円)
        <?php endif; ?>
    </span>
    <br>
    <span>
        保証金：
        <?php if($dataLand->deposit_cost == 0): ?>
            無
        <?php else: ?>
            有 (<?php echo e($dataLand->deposit_cost_val); ?>万円)
        <?php endif; ?>
    </span>
    <br>
    <span>
        敷金：
        <?php if($dataLand->security_deposit_cost == 0): ?>
            無
        <?php else: ?>
            有 (<?php echo e($dataLand->security_deposit_cost_val); ?>万円)
        <?php endif; ?>
    </span>
    <br>
    <span>
        借地権その他契約事項：<?php echo e($dataLand->other_leasehold); ?>

    </span>
    <br>
    <?php if($dataLand->land_right == 3): ?>
        <span>
            借地権割合：<?php echo e($dataLand->leasehold_rate); ?>%
        </span>
        <br>
    <?php endif; ?>
    <?php
        $isMore = [3, 4, 7, 8];
    ?>
    <?php if(in_array($dataLand->leasehold_kind, $isMore)): ?>
        <span>
            <?php
                $registrationsText = ["未選択", "可", "不可", "相談"];
            ?>
            定期借地権設定登記：<?php echo e($registrationsText[$dataLand->regular_leased_registration] ?? ""); ?>

        </span>
        <br>
        <span>
            <?php
                $seasonsText = ["未選択", "一定期間毎", "事前協議により決定"];
            ?>
            定期借地権賃料改定時期：<?php echo e($seasonsText[$dataLand->regular_leased_season] ?? ""); ?>

            <?php echo e($dataLand->regular_leased_season == 1 ? $dataLand->regular_leased_season_nen . "年毎" : ""); ?>

        </span>
        <br>
        <span>
            <?php
                $costsText = ["未選択", "公式", "事前協議により決定"];
            ?>
            定期借地権賃料改定額：<?php echo e($costsText[$dataLand->regular_leased_cost] ?? ""); ?>

        </span>
        <br>
        <span>
            <?php
                $transfersText = ["未選択", "可", "不可"];
            ?>
            定期借地権譲渡転貸：<?php echo e($transfersText[$dataLand->regular_leased_transfer] ?? ""); ?>

            <?php if($dataLand->regular_leased_transfer == 1): ?>
                <br>
                <span>
                    <?php
                        $transferMethodsText = ["未選択", "承諾不要", "通知要", "承諾要"];
                    ?>
                    &nbsp;&nbsp;&nbsp;承諾要否・方法：<?php echo e($transferMethodsText[$dataLand->regular_leased_transfer_method]); ?>

                </span>
                <br>
                <span>
                    <?php
                        $transferNecessitiesText = ["未選択", "要", "不要", "未定"];
                    ?>
                    &nbsp;&nbsp;&nbsp;承諾料要否：<?php echo e($transferNecessitiesText[$dataLand->regular_leased_transfer_necessity]); ?>

                </span>
                <br>
                <span>
                    <?php
                        $transferConsentsText = ["未選択", "地主", "転貸主"];
                    ?>
                    &nbsp;&nbsp;&nbsp;承諾者：<?php echo e($transferConsentsText[$dataLand->regular_leased_transfer_consent]); ?>

                </span>
            <?php endif; ?>
        </span>
        <br>
    <?php endif; ?>
    <?php break; ?>
<?php endswitch; ?>
<?php endif; ?>
