{{-- 並び替え --}}
<ul class="p-results-image list-unstyled">
@foreach($data as $item)
    <li class="p-results-image__li">
        <div class="p-results-image__li-head d-flex justify-content-between">
            <div class="w-100">
                <div class="d-flex justify-content-between">
                    <p class="p-results-image__li-name">{{$item['name']}}（{{$item['main_traffic_station']}}）</p>
                    <a href="#" class="p-results-image__li-link-mansion"><img src="/admin/img/icon_detail.png"></a>
                </div>
                @if(false)
                <ul class="d-flex list-unstyled">
                    <li class="p-results-image__mark--used">中古マンション</li>
                    <li class="p-results-image__mark--new">NEW 3/3</li>
                    <li class="p-results-image__mark--reform">リフォーム済</li>
                </ul>
                @endif
            </div>
        </div>
        <div class="p-results-image__image-area d-flex">
            <div class="p-results-image__image">
            @if(!empty($item->file_path))
                    <img src="{{$item->file_path}}"/>
            @else
                    <img src="{{root('img/noimage2.jpg')}}"/>
            @endif
@if($item['id'] == 1)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 2)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 3)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 4)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 5)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 6)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 7)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 8)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 9)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@elseif($item['id'] == 10)
                <img src="/admin/img/sample-image1.jpg">
                <img src="/admin/img/sample-image2.jpg">
@endif
<img src="{{$item['floor_file_path']}}">
            </div>
            <table class="p-results-image__main-info">
                <tr class="p-results-image__main-info-price">
                    <th>物件価格</th><td>{{$item['price']}}<span>万円</span></td>
                </tr>
                <tr class="p-results-image__main-info-address">
                    <th>所在地</th><td>{{$item['address']}}</td>
                </tr>
                <tr class="p-results-image__main-info-access">
                    <th>交通</th><td>{{$item['main_traffic_line']}}「{{$item['main_traffic_station']}}」徒歩{{$item['main_traffic_time']??'-'}}分</td>
                </tr>
            </table>
        </div>

        <div class="p-results-image__info d-flex justify-content-between">
            <table class="p-results-image__info-table">
                <tr>
                    <th>物件番号</th>
                    <td colspan="3">{{$item['rains_no']}}</td>
                    <th>築年月</th>
                    <td>{{$item['age_year']?? "-"}}年{{$item['age_month']?? "-"}}月</td>
                    <th>築年数</th>
                    <td>{{$item['age']?? "-"}}年</td>
                </tr>
                <tr>
                    <th>間取り・階数</th>
                    <td colspan="3">{{$item['floor_plan_text']?? "-"}}・{{$item['whereabouts']}}階</td>
                    <th>現況</th>
                    <td>{{$item['current_status']?? "-"}}</td>
                    <th>向き</th>
                    <td>-</td>
                </tr>
                <tr>
                    <th>延床面積</th>
                    <td>{{$item['total_area_val']?? "-"}}m&sup2;</td>
                    <th>土地面積</th>
                    <td>{{$item['land_area_val']?? "-"}}m&sup2;</td>
                    <th>学校区</th>
                    <td colspan="3">{{$item['primary_school_name']?? "-"}}/{{$item['secondary_school_name']?? "-"}}</td>
                </tr>
            </table>
@if(false)
            <p class="p-results-image__info-photo align-self-end">
                <img src="/admin/img/icon_camera.png" alt="写真">外00/内00</p>
@endif
        </div>
        {{-- TODO：確認ボタンクリック時に表示する --}}
        @if(false)
        @include('admin.objects.projects.form-check')
        @endif
    </li>
@endforeach
</ul>
