<tr>
    <th>
        スーモ入稿用画像<br>（内外観・その他）
        <div>
            <strong class="<?php if(count($portal_suumo_image)>20): ?> alart <?php endif; ?>"><?php echo e(count($portal_suumo_image)); ?>/20枚</strong>
        </div>
        <span class="text-color-red kt-bg-icon mt10">※pngはSUUMOに入稿できません<br>ドラッグ＆ドロップで<br>並べ替えができます</span>
        <?php if($portal_status == 1): ?>
            <a href="javascript:imageFileUploadPortal(<?php echo e($article_id); ?>, 'all', '', 'suumo')" class="modal-open-portal kt-bt kt-bg-2 mt-4">画像をセット（すべて）</a>
        <?php else: ?>
            <button type="button" class="modal-open-portal kt-bt kt-bg-2 mt-4" data-n="1" autocomplete="off">画像をセット（すべて）</button>
        <?php endif; ?>
        <button type="button" class="modal-portal-detail kt-bt kt-bg-3 mt-2" data-n="1" autocomplete="off">画像をセット（一部）</button>
    </th>
    <td>
        <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'del_photo_id', 'value' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div id="sortable_article_image" class="p-regist__sorttable portal_image_trash_group">
            <div id="image_list_portal" class="row portal_sorttable">
                <?php $stt = 0; ?>
                <?php $__currentLoopData = $portal_suumo_image; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php $stt++; ?>
                    <div class="col-2 mt10 mb10 sorttable_item <?php if($stt>20): ?>line-red <?php endif; ?>">
                        <span class="position-relative title_number mb10 <?php if($stt>3): ?>bg-non-dark <?php endif; ?>"><?php if($stt<= 3): ?>優先画像<?php else: ?>画像<?php endif; ?>.<?php echo e($stt); ?></span>
                        <label class="p-portalupload w-100 file_multiple_label" data-id="<?php echo e($stt); ?>" for="fileMutilInput<?php echo e($stt); ?>">
                            <img class="p-img-size" src="<?php echo e($photo->storageLink.'?v='.strtotime(now())); ?>">
                            <canvas width="0" height="0"></canvas>
                            <p class="p-imgupload__text">クリックまたは<br>ドラッグ&amp;ドロップ</p>
                            <input id="fileMutilInput<?php echo e($stt); ?>" type="file" accept="image/png, image/gif, image/jpeg" name="file_input[<?php echo e($stt); ?>]" class="file_multiple_input d-none">
                            <input type="hidden" name="file_path<?php echo e($stt); ?>" value="<?php echo e($photo->file_path); ?>">
                        </label>

                        <div class="w-100 position-relative mt10">
                            <label class="require-portal float-left">必須</label>
                            <?php echo $__env->make('admin.objects.components.selectbox', ['class'  =>  'w100 position-relative', 'name' => 'photo_property_sub'.$stt, 'options' => $photo_property_suumo, 'selected' => selectedPhotoPropertySuumo($article_property, $photo->property_sub, $photo->type_upload, $photo->mansion, $photo->facility)], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        </div>
                        <?php echo $__env->make('admin.objects.components.textarea_house', ['name' => 'photo_comment'.$stt, 'class' => 'img_text mt10 position-relative', 'count' => 100, 'site' => 1, 'placeholder' => '画像コメント', 'value' => $photo->memo], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>

                        <div class="mt10 w-100">
                            <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'article_photo_id'.$stt, 'value' => $photo->id], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'order'.$stt, 'value' => '', 'class' => 'portal_order'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            <?php echo $__env->make('admin.objects.components.btn', ['name' => 'del_photo_portal', 'class' => 'btn_imagedel w-100 position-relative', 'title' => '削除', 'type' => 'button'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php if($stt < 20): ?>
                    <?php for($j = $stt+1; $j <= 20;$j++): ?>
                        <div class="col-2 mt10 mb10 sorttable_item">
                            <span class="title_number mb10 <?php if($j>3): ?>bg-non-dark <?php endif; ?>"><?php if($j<= 3): ?>優先画像<?php else: ?>画像<?php endif; ?>.<?php echo e($j); ?></span>
                            <label class="p-portalupload w-100 file_multiple_label" data-id="<?php echo e($j); ?>" for="fileMutilInput<?php echo e($j); ?>">
                                <canvas width="0" height="0"></canvas>
                                <p class="p-imgupload__text">クリックまたは<br>ドラッグ&amp;ドロップ</p>
                                <input id="fileMutilInput<?php echo e($j); ?>" type="file" accept="image/png, image/gif, image/jpeg" name="file_input[<?php echo e($j); ?>]" class="file_multiple_input d-none">
                                <input type="hidden" name="file_path<?php echo e($j); ?>" value="">
                            </label>

                            <div class="w-100 position-relative mt10">
                                <label class="require-portal float-left">必須</label>
                                <?php echo $__env->make('admin.objects.components.selectbox', ['class'  =>  'w100 position-relative', 'name' => 'photo_property_sub'.$j, 'options' => $photo_property_suumo, 'selected' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            </div>
                            <?php echo $__env->make('admin.objects.components.textarea_house', ['name' => 'photo_comment'.$j, 'class' => 'img_text mt10 position-relative', 'count' => 100, 'site' => 1, 'placeholder' => '画像コメント', 'value' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>

                            <div class="mt10 w-100 position-relative">
                                <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'article_photo_id'.$j, 'value' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'order'.$j, 'value' => '', 'class' => 'portal_order'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                <?php echo $__env->make('admin.objects.components.btn', ['name' => 'del_photo_portal', 'class' => 'btn_imagedel w-100', 'title' => '削除', 'type' => 'button'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            </div>
                        </div>
                    <?php endfor; ?>
                <?php endif; ?>
            </div>
        </div>
        <?php if(count($portal_suumo_image_del) > 0): ?>
        <div class="button_bar pt-close">
            <a class="p-search-common__collapse-link p-search-common__collapse-link--open" data-toggle="collapse" href="#suumo_image_del" role="button" aria-expanded="true" aria-controls="suumo_image_del">前回のデータ</a>
        </div>
        <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'del_del_photo_id', 'value' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div id="suumo_image_del" class="p-regist__sorttable portal_image_delete_group collapse">
            <div id="image_list_portal" class="row portal_sorttable">
                <?php
                    $stt = 20;
                    if(count($portal_suumo_image)>20){
                        $stt = count($portal_suumo_image);
                    }
                ?>
                <?php $__currentLoopData = $portal_suumo_image_del; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php $stt++; ?>
                    <div class="col-2 mt10 mb10 sorttable_item">
                        <span class="position-relative title_number mb10 bg-non-dark"><?php if($stt<= 23): ?>優先画像.<?php echo e($stt-20); ?><?php else: ?>画像.<?php echo e($stt-23); ?><?php endif; ?></span>
                        <label class="p-portalupload w-100 file_multiple_label pointer-events-none" data-id="<?php echo e($stt); ?>" for="fileMutilInput<?php echo e($stt); ?>">
                            <img class="p-img-size" src="<?php echo e($photo->storageLink); ?>">
                            <canvas width="0" height="0"></canvas>
                            <p class="p-imgupload__text">クリックまたは<br>ドラッグ&amp;ドロップ</p>
                            <input id="fileMutilInput<?php echo e($stt); ?>" type="file" accept="image/png, image/gif, image/jpeg" name="file_input[<?php echo e($stt); ?>]" class="file_multiple_input d-none">
                            <input type="hidden" name="file_path<?php echo e($stt); ?>" value="<?php echo e($photo->file_path); ?>">
                        </label>

                        <div class="w-100 position-relative mt10">
                            <label class="require-portal float-left">必須</label>
                            <?php echo $__env->make('admin.objects.components.selectbox', ['class'  =>  'w100 position-relative', 'name' => 'photo_property_sub'.$stt, 'options' => $photo_property_suumo, 'selected' => selectedPhotoPropertySuumo($article_property, $photo->property_sub, $photo->type_upload, $photo->mansion, $photo->facility)], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        </div>
                        <?php echo $__env->make('admin.objects.components.textarea_house', ['name' => 'photo_comment'.$stt, 'class' => 'img_text mt10 position-relative', 'count' => 100, 'site' => 1, 'placeholder' => '画像コメント', 'value' => $photo->memo], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>

                        <div class="mt10 w-100">
                            <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'article_photo_id'.$stt, 'value' => $photo->id, 'class' => 'portal_photo_id'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            <?php echo $__env->make('admin.objects.components.hidden', ['name' => 'order'.$stt, 'value' => '', 'class' => 'portal_order'], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            <?php echo $__env->make('admin.objects.components.btn', ['name' => 'del_photo_portal', 'class' => 'btn_imagedel w-100 position-relative delete_portal_image_btn', 'title' => '削除', 'type' => 'button', 'dataPhoto' => $photo->id], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <div class="col-4 mt10 mb10 item-center">
                    <a href="javascript:void(0)" class="restore_portal_image_btn saved_del" data-photo="<?php echo e(implode(',', $portal_suumo_image_del->pluck('id')->toArray())); ?>">この内容で上枠内を上書きする</a>
                </div>
            </div>
        </div>
        <?php endif; ?>
    </td>
</tr>
