@php
    $showType = 0;
    $item = optional($item);
    if (in_array($item->property, [1,2,3,4,5])) {
        $showType = 1;
        $dataType = '/detail/';
    } elseif (in_array($item->property, [6,7])) {
          $showType = 2;
          $dataType = '/parentDetail/';
    } elseif (in_array($item->property, [99])) {
            $showType = 3;
            $dataType = '/parentDetail/';
    } else {
        $showType = 0;
        $dataType = '/detail/';
    }
@endphp
<div id="type-print" data-type="{{ $dataType }}"></div>
<div id="modal-content-set" class="modal-contents-set">
    <div id="modal_open">
        <header id="modal_header">印刷するセットをお選びください。
        </header>
        <main id="modal_main">
            <div class="d-flex" style="justify-content: center;">
                @if ($showType == 0 || $showType == 1 || $showType == 2 || $showType == 3)
                    <div>
                    <table>
                        <tr><th class="d-flex"><div class="title_own"><span>自社<br>物件シート</span></div></th></tr>
                        <tr>
                            <td>
                            <a id="btnMultiPrintSet" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">複数物件</a>
                            @if(!isset($print_list))
                                <a id="btnSinglePrintSet" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">1物件</a>
                            @endif
                            </td>
                        </tr>
                    </table>
                    </div>
                    @endif
                    @if($showType == 0 || $showType == 1 || $showType == 2)
                    <div>
                    <table>
                        <tr><th class="d-flex"><div class="title_photo"><span>写真</span></div></th></tr>
                        <tr>
                            <td>
                            <a id="btnMultiPrintSetPhoto" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">複数物件</a>
                            @if(!isset($print_list))
                                <a id="btnSinglePrintSetPhoto" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">1物件</a>
                            @endif
                            </td>
                        </tr>
                    </table>
                    </div>
                    @endif
                    @if($showType == 2 || $showType == 3)
                    <div>
                    <table>
                        <tr><th class="d-flex"><div class="title_result"><span>売出・成約</span></div></th></tr>
                        <tr>
                            <td>
                            <a id="btnMultiPrintSetSummary" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">複数物件</a>
                            @if(!isset($print_list))
                                <a id="btnSinglePrintSetSummary" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">1物件</a>
                            @endif
                            </td>
                        </tr>
                    </table>
                    </div>
                    @endif
                    @if($showType == 0 || $showType == 1)
                    <div>
                        <table>
                            <tr><th class="d-flex"><div class="title_other"><span>業者<br>物件シート</span></div></th></tr>
                            <tr>
                                <td>
                                <a id="btnMultiPrintVendor" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">複数物件</a>
                                @if(!isset($print_list))
                                    <a id="btnSinglePrintVendor" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">1物件</a>
                                @endif
                                </td>
                            </tr>
                        </table>
                    </div>
                @endif
                @if($showType == 0 || $showType == 1)
                    <div>
                    <table>
                        <tr><th class="d-flex"><div class="title_own"><span>自社<br>物件シート</span></div>+<div class="title_other"><span>業者<br>物件シート</span></div></th></tr>
                        <tr>
                            <td>
                            <a id="btnMultiPrintSet1" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">複数物件</a>
                            @if(!isset($print_list))
                                <a id="btnSinglePrintSet1" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">1物件</a>
                            @endif
                            </td>
                        </tr>
                    </table>
                </div>
                @endif
                @if ($showType == 0 || $showType == 2)
                    <!--<div>
                        <table>
                            <tr><th class="d-flex"><div class="title_own"><span>自社<br>物件シート</span></div>+<div class="title_mansion"><span>マンション<br>リスト</span></div></th></tr>
                            <tr>
                                <td>
                                <a id="btnMultiPrintSet2" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">全物件</a>
                                <a id="btnSinglePrintSet2" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">当該物件のみ</a>

                                </td>
                            </tr>
                        </table>
                    </div>
                    <div>
                    <table>
                        <tr><th class="d-flex"><div class="title_own"><span>自社<br>物件シート</span></div>+<div class="title_other"><span>業者<br>物件シート</span></div>+<div class="title_mansion"><span>マンション<br>リスト</span></div></th></tr>
                        <tr>
                            <td>
                            <a id="btnMultiPrintSet3" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">全物件</a>
                            <a id="btnSinglePrintSet3" class="c-linkbtn p-detail-header__button-list--close" href="javascript:void(0);">当該物件のみ</a>
                            </td>
                        </tr>
                    </table>
                </div>-->
                @endif
            </div>
        </main>
        <footer id="modal_footer">
            <p><a class="modal-close" class="button-link" data-n=""><i class="<!--fa fa-times-->" aria-hidden="true">×</i></a></p>
        </footer>
    </div>
</div>
