<div class="p-search-common">
    <table class="p-search-common__tbl">
        <tr>
            <td rowspan="9" class="p-search-common__tbl-number">01</td>
            <th>物件種別</th>
            <td class="w230">
                @include('admin.objects.components.selectbox', ['name' => 'property[]', 'options' => $property, 'title' => '物件種別'])
                @include('admin.objects.components.checkbox', ['name' => 'revenue[]', 'checkbox' => $revenue])
            </td>
            <th>所在地</th>
            <td colspan="3" class="p-search-common__address">
                @include('admin.objects.components.selectbox', ['name' => 'address1[]', 'options' => $pref])
                @include('admin.objects.components.selectbox', ['name' => 'address2[]', 'class' => "sai-kyoto", 'options' => $city, 'title' => '市区郡'])
                @include('admin.objects.components.selectbox', ['name' => 'address3[]', 'options' => $town, 'title' => '町村'])
                @include('admin.objects.components.input', ['name' => 'address4[]', 'class' => 'w100'])
            </td>
            <th>物件ID</th>
            <td class="p-search-common__id">
                @include('admin.objects.components.input', ['name' => 'building_id[]'])
            </td>
        </tr>
        <tr>
            <th>価格</th>
            <td class="p-search-common__price">
                @include('admin.objects.components.input', ['name' => 'price_from[]', 'placeholder' => '下限なし'])〜
                @include('admin.objects.components.input', ['name' => 'price_to[]', 'placeholder' => '上限なし'])万円
            </td>
            <th>交通</th>
            <td colspan="5" class="p-search-common__access">
                @include('admin.objects.components.selectbox', ['name' => 'access1[]', 'options' => $line, 'title' => '沿線'])
                @include('admin.objects.components.selectbox', ['name' => 'access2[]', 'options' => [], 'title' => '駅'])
                @include('admin.objects.components.selectbox', ['name' => 'access3[]', 'options' => $walk, 'title' => '徒歩/バス'])
                <span>バス</span>@include('admin.objects.components.input', ['name' => 'bus[]'])<span>分以内 / 徒歩</span>
                @include('admin.objects.components.input', ['name' => 'walk[]'])<span>分以内</span>
            </td>
        </tr>
        <tr>
            <th>学校区</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'primary_school[]', 'options' => $primary_school, 'title' => '小学校区', 'class' => 'w100 mb10'])
                @include('admin.objects.components.selectbox', ['name' => 'secondary_school[]', 'options' => $secondary_school, 'title' => '中学校区', 'class' => 'w100'])
            </td>
            <th>土地面積</th>
            <td class="p-search-common__land w210">
                @include('admin.objects.components.input', ['name' => 'land_from[]', 'placeholder' => '下限なし'])〜
                @include('admin.objects.components.input', ['name' => 'land_to[]', 'placeholder' => '上限なし'])m&sup2;
            </td>
            <th>延床面積</th>
            <td class="p-search-common__floor-area w200">
                @include('admin.objects.components.input', ['name' => 'floor_area_from[]', 'placeholder' => '下限なし'])〜
                @include('admin.objects.components.input', ['name' => 'floor_area_to[]', 'placeholder' => '上限なし'])m&sup2;
            </td>
            <th>間取り</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'floor_plan[]', 'options' => $floor_plan, 'title' => '間取り'])
            </td>
        </tr>
        <tr>
            <th>物件名</th>
            <td class="p-search-common__name">
                @include('admin.objects.components.input', ['name' => 'name[]', 'placeholder' => ''])
            </td>
            <th>築年数</th>
            <td class="p-search-common__years">
                @include('admin.objects.components.input', ['name' => 'years_from[]', 'placeholder' => '下限なし'])〜
                @include('admin.objects.components.input', ['name' => 'years_to[]', 'placeholder' => '上限なし'])年
            </td>
            <th>築年月</th>
            <td class="p-search-common__year-month">
                @include('admin.objects.components.input', ['name' => 'year_month_from[]', 'placeholder' => '0000/00'])〜
                @include('admin.objects.components.input', ['name' => 'year_month_to[]', 'placeholder' => '0000/00'])
            </td>
            <th>構造</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'construction[]', 'options' => $construction, 'title' => '構造'])
            </td>
        </tr>
        <tr>
            <th>駐車場</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'parking[]', 'options' => $parking, 'title' => '駐車場'])
            </td>
            <th>現況</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'current_status[]', 'options' => $land_status, 'title' => '現況'])
            </td>
            <th>用途地域</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'use_area[]', 'options' => $use_area, 'title' => '用途地域'])
            </td>
            <th>階建</th>
            <td class="p-search-common__floor">
                @include('admin.objects.components.input', ['name' => 'floor_from[]', 'placeholder' => '下限なし'])〜
                @include('admin.objects.components.input', ['name' => 'floor_to[]', 'placeholder' => '上限なし'])階建
            </td>
        </tr>
        <tr>
            <th>建築条件</th>
            <td>
                @include('admin.objects.components.checkbox', ['name' => 'land_condition[]',
                    'checkbox' => [['code'=>'1', 'name'=>'建築条件付'], ['code'=>'0', 'name'=>'建築条件無']]
                ])
            </td>
            </td>
            <th>条件外し</th>
            <td>
                @include('admin.objects.components.checkbox', ['name' => 'remove_condition[]',
                    'checkbox' => [['code'=>'1', 'name'=>'条件外し可']]
                ])
            </td>
            </td>
            <th>接道方向</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'land_kind[]', 'options' => $land_direction, 'title' => '接道方向'])
            </td>
            <th>取扱店舗</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'search_shop[]', 'options' => $shop, 'title' => '取扱店舗'])
            </td>
        </tr>
        <tr>
            <th>バルコニー</th>
            <td class="p-search-common__balcony">
                @include('admin.objects.components.selectbox', ['name' => 'balcony_direction[]', 'options' => $balcony])
                @include('admin.objects.components.input', ['name' => 'balcony_area[]', 'placeholder' => ''])m&sup2;以上
            </td>
            <th>ペット</th>
            <td>
                @include('admin.objects.components.selectbox', ['name' => 'is_pet[]', 'options' => $pet, 'title' => '可or不可', 'class' => 'w125'])
                @include('admin.objects.components.selectbox', ['name' => 'pet_num[]', 'options' => $pet_num])
            </td>
            <th>事業主</th>
            <td>
                @include('admin.objects.components.input', ['name' => 'management_company[]', 'placeholder' => ''])
            </td>
            <th>施工</th>
            <td>
                @include('admin.objects.components.input', ['name' => 'construction_name[]', 'placeholder' => ''])
            </td>
        </tr>
        <tr>
            <td colspan="8" class="p-search-common__collapse">
                <a class="p-search-common__collapse-link p-search-common__collapse-link--open" data-toggle="collapse" href="#searchUnique" role="button" aria-expanded="false" aria-controls="searchUnique"></a>
                <div class="collapse p-search-common__collapse-contains" id="searchUnique">
                @if ($isForSale ?? false)
                    @include('admin.objects.projects.search-for-sale-multi')
                @else
                    @include('admin.objects.projects.search-close')
                @endif
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="8">
                <ul class="p-search-common__search-clear">
                    <li><a href="javascript:void(0);" class="clear-button">この条件をクリア</a></li>
                    <li><a href="javascript:void(0);" class="delete-form-button">この条件を削除</a></li>
                </ul>
            </td>
        </tr>
    </table>
</div>
