<?php $__currentLoopData = $article_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="mb-3 mansion-list">
        <table class="p-results-noimage__tbl">
            <tr>
                <td rowspan="2" class="p-results-noimage__tbl-num-date">
                    <p><span class="p-results-noimage__tbl-number">マンションID</span><br><a href="javascript:void(0);" class="target_link_id" id="bttnParentDetail<?php echo e($item->building_id); ?>" ><?php echo e($item->building_id); ?></a></p>
                    <p class="mt-1">
                        <?php if($item["room_count"]): ?>
                            <a href="javascript:void(0);" class="p-results-current-condition__panel--btn-delete disp_room_noimage" name="show_room_btn">売出(<?php echo e($item["room_count"]); ?>) <i class="fa fa-caret-down"></i></a>
                        <?php else: ?>
                            <span class="p-results-current-condition__panel--btn-delete disp_room_noimage" name="show_room_btn">売出(<?php echo e($item["room_count"]); ?>) </span>
                        <?php endif; ?>
                    </p>
                </td>
                <th>物件名</th>
                <td colspan="2" class="w270">
                    <div class="d-flex justify-content-between">
                        <?php echo e($item->name); ?>

                        <a href="javascript:void(0);" class="p-results-image__li-link-mansion" id="bttnParentDetail<?php echo e($item->building_id); ?>" class="p-results-noimage__tbl-link-mansion">
                        <!-- <a href="/business/editMansion/<?php echo e($item->building_id); ?>" class="p-results-noimage__tbl-link-mansion"> -->
                            <img src="../../business/img/icon_detail.png">
                        </a>
                    </div>
                </td>
                <th>所在地</th><td colspan="2" class="w300"><?php echo e($item->address); ?></td>
                <th>築年月</th><td class="w120"><?php echo e($item->age_year?? "-"); ?>年<?php echo e($item->age_month?? "-"); ?>月</td>
                <th>校区</th><td><?php echo e($item->primary_school_name?? "-"); ?>/<?php echo e($item->secondary_school_name?? "-"); ?></td>
            </tr>
            <tr>
                <th>種別</th>
                <td colspan="2">
                    <?php if($item->property == 6): ?>
                        <?php if($item->property_sub == 1): ?>
                            新築
                        <?php else: ?>
                            中古
                        <?php endif; ?>
                        マンション
                    <?php elseif($item->property == 7): ?>
                        <?php if($item->property_sub == 1): ?>
                            新築
                        <?php else: ?>
                            中古
                        <?php endif; ?>
                        タウンハウス
                    <?php endif; ?>
                </td>
                <th>交通</th><td colspan="2">
                    <?php echo $__env->make('business.objects.projects.traffic-info-summary', ['article' => $item], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                </td>
                <th>総戸数</th><td><?php echo e($item->total_unit?? "-"); ?>戸</td>
                <th>階数</th><td>
                    <?php if($item->underground): ?>
                        地上<?php echo e($item->floor); ?>階 地下<?php echo e($item->underground); ?>階建
                    <?php elseif($item->floor): ?>
                        <?php echo e($item->floor); ?>階建
                    <?php else: ?>
                        -
                    <?php endif; ?>
                </td>
            </tr>
        </table>
        <?php $__currentLoopData = $item->room_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $room): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div  <?php if($item->show_ite == true): ?> class="p-mansion-room p-mansion-room-show" <?php else: ?> class="p-mansion-room" <?php endif; ?> >
                <table class="p-mansion-room__tbl">
                    <tr>
                        <td class="p-mansion-room__tbl-number w90">物件番号<br /><span class="room_building_id"><?php echo e($room->building_id); ?></span></td>
                        <th>部屋</th>
                        <td class="w90"><?php echo e($room->room_num?? '-'); ?></td>
                        <th>価格</th>
                        <td class="w160"><?php echo e(number_format($room->price, 0, ",", ",")); ?><span>万円<?php if($room->tax==2): ?>（税込）<?php endif; ?></span></td>
                        <th>専有</th>
                        <td class="w120"><?php echo e($room->total_area_val?? '-'); ?>m&sup2;</td>
                        <th>間取り</th>
                        <td class="w90"><?php echo e($room->floor_plan_text?? '-'); ?></td>
                        <th class="w90">階数</th>
                        <td><?php if($room->maisonette == 1): ?> <?php echo e($room->maisonette_from?? '-'); ?>階〜<?php echo e($room->maisonette_to?? '-'); ?>階 <?php else: ?> <?php echo e($room->whereabouts?? '-'); ?>階 <?php endif; ?></td>
                        <td class="w90"><img src="/business/img/icon_camera.png" alt="写真">内<?php echo e($room->file_count); ?></td>
                        <td colspan="3" class="no-print">
                            <ul class="p-results-image__li-btns d-flex justify-content-end list-unstyled">
                                <?php if(!isset($print)): ?>
                                    <li>
                                        <?php echo $__env->make('business.objects.components.circle-btn-mansion',
                                            ['id' => 'btnCheck', 'class' => 'c-circle-btn__check-mansion_noimage show_lv_2', 'linkUrl' => '#',
                                            'img' => '../../business/img/icon_check.png', 'title' => '確認'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                    </li>
                                    <li>
                                        <?php echo $__env->make('business.objects.components.circle-btn-mansion',
                                            ['id' => 'btnDetail'.$room->building_id, 'class' => 'c-circle-btn__detail', 'linkUrl' => 'javascript:void(0);',
                                            'img' => '../../business/img/icon_detail.png', 'title' => '詳細'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                    </li>
                            <?php endif; ?>
                            <!--<li>
                                <?php echo $__env->make('business.objects.components.circle-btn-mansion',
                                    ['id' => 'btnDisplay', 'class' => 'c-circle-btn__disp-mansion_noimage', 'linkUrl' => '#',
                                    'img' => '../../business/img/icon_display.png', 'title' => '表示'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                </li>-->
                            </ul>
                        </td>
                    </tr>
                </table>

                <?php
                    $uuid = \Ramsey\Uuid\Uuid::uuid4();
                ?>
                
                <?php echo $__env->make('business.objects.projects.form-check-mansion', ['data_num' => $uuid, 'history_count' => count($room->history)], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <?php echo $__env->make('business.objects.projects.modal-history', ['history' => $room->history, 'data_num' => $uuid], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
