<style>
    .p-detail-main-sheet__left-imagesbox{
        overflow: inherit;
    }
</style>
<div class="p-detail-main-sheet__left">
    <div class="p-detail-main-sheet__left-icon-print2"></div>
    <?php if(!in_array($item->property, [6, 7])): ?>
        <?php if($item->sheet_file_type == 2 || $item->sheet_file_type == null): ?>
            <div class="p-detail-main-sheet__left-box">
                <div class="p-detail-main-sheet__left-imagesbox preview-image-board-container--image-board">
                    <ul class="p-detail-main-sheet__left-photos list-unstyled preview-detail-other-img">
                        <?php
                            $photosOutdoorPrint = isset($photosOutdoor) ? $photosOutdoor : $item->photosOutdoor;
                            $photosPrint = isset($photos) ? $photos : $item->photos;
                        ?>
                        <?php if(!empty($photosOutdoorPrint[0]->disp_file_path)): ?>
                            <li class="p-detail-main-sheet__left-photo">
                                <div class="p-detail-main-sheet__left-border"><img src="<?php echo e($photosOutdoorPrint[0]->disp_file_path); ?>" /></div>
                            </li>
                            <?php $photoOut_cnt=1;?>
                            <?php for($photo_cnt=0;$photo_cnt<4;$photo_cnt++): ?>
                                <li class="p-detail-main-sheet__left-photo">
                                    <?php if(!empty($photosPrint[$photo_cnt]->disp_file_path)): ?>
                                        <div class="p-detail-main-sheet__left-border"><img src="<?php echo e($photosPrint[$photo_cnt]->disp_file_path); ?>" /></div>
                                    <?php elseif(!empty($photosOutdoorPrint[$photoOut_cnt]->disp_file_path)): ?>
                                        <div class="p-detail-main-sheet__left-border"><img src="<?php echo e($photosOutdoorPrint[$photoOut_cnt]->disp_file_path); ?>" /></div>
                                        <?php $photoOut_cnt++;?>
                                    <?php else: ?>

                                    <?php endif; ?>
                                </li>
                            <?php endfor; ?>
                        <?php else: ?>
                            <?php for($photo_cnt=0;$photo_cnt<5;$photo_cnt++): ?>
                                <li class="p-detail-main-sheet__left-photo image-preview-child">
                                    <?php if(!empty($photosPrint[$photo_cnt]->disp_file_path)): ?>
                                        <div class="p-detail-main-sheet__left-border"><img src="<?php echo e($photosPrint[$photo_cnt]->disp_file_path); ?>" /></div>
                                    <?php else: ?>

                                    <?php endif; ?>
                                </li>
                            <?php endfor; ?>
                        <?php endif; ?>
                        <div class="clear"></div>
                    </ul>
                    <div>
                        <ul class="p-detail-main-sheet__left-images list-unstyled">
                            <li class="p-detail-main-sheet__left-image main-img">
                                <?php if($item->vertical === 1): ?>
                                    <?php if(!empty($item->file_path2)): ?>
                                        <div class="p-detail-main-sheet__left-border p-detail-main-sheet__file-vertical">
                                            <img src="<?php echo e(url(str_replace('/floor/', '/floor/800/', $item->file_path2))); ?>"/>
                                        </div>
                                    <?php else: ?>

                                    <?php endif; ?>
                                <?php else: ?>
                                    <?php if(!empty($item->disp_file)): ?>
                                        <div class="p-detail-main-sheet__left-border p-detail-main-sheet__file-horizontal first-img-horizontal">
                                            <img class="img-1200" src="<?php echo e(url(str_replace('/floor/', '/floor/1200/', $item->disp_file))); ?>"/>
                                            <img class="img-800" src="<?php echo e(url(str_replace('/floor/', '/floor/800/', $item->disp_file))); ?>"/>
                                        </div>
                                    <?php else: ?>

                                    <?php endif; ?>
                                <?php endif; ?>
                            </li>
                        </ul>
                        <div class="clear"></div>
                        <div class="recommend-txt">
                            <div class="p-detail-main-sheet__left-point"><?php echo strlen($item->point_recommend) > 20 ? mb_substr($item->point_recommend, 0, 20,"UTF-8") : $item->point_recommend; ?></div>
                            <div class="p-detail-main-sheet__left-point"><?php echo strlen($item->point_recommend2) > 20 ? mb_substr($item->point_recommend2, 0, 20,"UTF-8") : $item->point_recommend2; ?></div>
                            <div class="p-detail-main-sheet__left-point"><?php echo strlen($item->point_recommend3) > 20 ? mb_substr($item->point_recommend3, 0, 20,"UTF-8") : $item->point_recommend3; ?></div>
                            <div class="p-detail-main-sheet__left-point"><?php echo strlen($item->point_recommend4) > 20 ? mb_substr($item->point_recommend4, 0, 20,"UTF-8") : $item->point_recommend4; ?></div>
                            
                        </div>
                    </div>

                </div>
                <div class="clear"></div>
                <div class="memo-business"><?php echo e($item->getMemobusiness2()); ?></div>
            </div>

        <?php else: ?>
            <div class="left-content">
                <ul class="list-unstyled">
                    <li class="p-print-single__left-image">
                        <?php if(!empty($item->disp_file)): ?>
                            <img src="<?php echo e($item->disp_file); ?>"/>
                        <?php else: ?>
                            <img src="<?php echo e(root('img/noimage2.jpg')); ?>"/>
                        <?php endif; ?>
                    </li>
                </ul>
                <div class="other-memo-description">
                    <span class="p-detail-main-sheet__left-right"><?php echo nl2br(e($item->memo_business)); ?></span>
                    <span class="p-detail-main-sheet__left-right <?php if($item->property == 4 || $item->property == 5): ?> p-detail-main-sheet__left-right-house <?php endif; ?>">
                <?php if($item->classfication == 2 or $item->classfication == 3): ?>
                            ■
                            <?php if($item->classfication != 1): ?>
                                <?php if($item->property == 4 || $item->property == 5): ?>
                                    売買区分：<?php echo e($item->trading_classfication == 1 ? '一棟売　' : '一括売　'); ?>

                                <?php elseif(empty($item->property)): ?>
                                    売買区分：<?php echo e($item->trading_classfication == 1 ? '一室売　' : '一括売　'); ?>

                                <?php endif; ?>
                                <?php if($item->classfication == 2): ?>
                                    事業用用途：<?php echo e(!empty($item->use_method) && $item->classfication == 2 ? $item->getUserMethod() : '-'); ?>

                                    事業用引渡し状態：
                                    <?php
                                        $names = ['-', '造作譲渡あり', '造作譲渡なし', '設備無償譲渡', 'スケルトン渡し'];
                                        echo $names[$item->business_status] ?? '';
                                    ?>
                                <?php elseif($item->classfication == 3): ?>
                                    <?php echo e(str_replace('<br>','　',$item->getInvestmentPerformance())); ?>


                                <?php endif; ?>
                            <?php endif; ?>



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

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

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

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

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

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

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

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

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

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

                        <?php endif; ?>
                        <?php if(isset($item->dataLand) && ($item->dataLand->land_right == 2 or $item->dataLand->land_right == 3)): ?>
                            ■<?php echo $__env->make('business.objects.components.land-right', ['dataLand' => $item->dataLand], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        <?php endif; ?>
                        <?php if(empty($item->mansion) and $item->getLowRestrictionName()): ?>
                            ■法令上の制限：<?php echo e(str_replace('<br>',', ',$item->getLowRestrictionName())); ?>

                        <?php elseif(!empty($item->mansion) && $item->mansion->getLowRestrictionName()): ?>
                            ■法令上の制限：<?php echo e(str_replace('<br>',', ',$item->mansion->getLowRestrictionName())); ?>

                        <?php endif; ?>
                        <?php if(empty($item->mansion) and $item->getOtherRestriction()): ?>
                            ■その他制限事項：<?php echo e(str_replace('<br>',', ',$item->getOtherRestriction())); ?>

                        <?php elseif(!empty($item->mansion) && $item->mansion->getOtherRestriction()): ?>
                            ■その他制限事項：<?php echo e(str_replace('<br>',', ',$item->mansion->getOtherRestriction())); ?>

                        <?php endif; ?>
                        <?php if($item->getExteriorHTML() and $item->getExteriorHTML()!='無'): ?>
                            ■リフォーム外装：<?php echo $item->getExteriorHTML(); ?>

                        <?php endif; ?>
                        <?php if($item->getInteriorHTML() and $item->getInteriorHTML()!='無'): ?>
                            ■リフォーム内装：<?php echo $item->getInteriorHTML(); ?>

                        <?php endif; ?>
                        <?php if($item->architecture_no): ?>
                            ■建築確認：<?php echo e($item->architecture_no??'-'); ?>

                        <?php endif; ?>
                        <?php if( $item->develop_num): ?>
                            ■開発許可：<?php echo e($item->develop_num??'-'); ?>

                        <?php endif; ?>
                </span>
                    <span class="p-detail-main-sheet__left-right">
                    ■図面と現況が異なる場合は、現況優先とします。■掲載物件は成約済・売却中止になる場合があります。
                </span>
            </div>
            </div>
        <?php endif; ?>
    <?php else: ?>
        <div>
            <p class="p-detail-main-sheet__left-catch"><?php echo e($item->catchcopy); ?></p>
            <?php if(!empty($item->point)): ?>
                <ul class="p-detail-main-sheet__left-points">
                    <li class="p-detail-main-sheet__left-point"><?php echo nl2br(e($item->point)); ?></li>
                </ul>
            <?php endif; ?>
            <ul class="w-100 list-unstyled">
                <?php if(!empty($item->photos) && is_array($item->photos)): ?>
                    <?php $__currentLoopData = $item->photos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li class="p-detail-main-sheet__left-photo">
                            <div class="p-detail-main-sheet__left-border"><img src="<?php echo e($photo->disp_file_path); ?>" <?php echo e($index != 0 ? 'style=width:100%' : ''); ?>></div>
                        </li>
                        <?php if($index==2){ break; } ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php else: ?>
                    <li class="p-detail-main-sheet__left-photo" style="width: 100%">
                        <div class="p-detail-main-sheet__left-noimage">
                            <span>No Image</span>
                        </div>
                    </li>
                <?php endif; ?>
            </ul>
        </div>
    <?php endif; ?>
</div>

