@include('admin.objects.components.hidden', ['name' => 'delete_facility_list'])
<table class="p-regist__table">
    <tbody id="facility_list">
        <tr>
            <th colspan="2" rowspan="99">施設写真
            </th>
        </tr>
        @foreach($facility as $row)
            <tr>
                <td>
                    <div class="d-flex regist-facility" >
                        @include('admin.objects.components.hidden', ['name' => 'save_facility_id[]', 'value' => $row->facility_id])
                        @include('admin.objects.components.hidden', ['name' => 'save_facility_distance[]', 'value' => $row->distance])
                        @include('admin.objects.components.hidden', ['name' => 'facility_area[]', 'value' => $row->facility_area])
                        @include('admin.objects.components.hidden', ['name' => 'facility_property[]', 'value' => $row->facility_property])
                        @include('admin.objects.components.hidden', ['name' => 'facility[]', 'value' => $row->facility])
                        <div class="w150 mr10">
                            @if(!empty($row->disp_file_path))
                            <img src="{{$row->disp_file_path}}" width="150" name="save_facility_img">
                            @else
                            <img src="{{root('img/noimage2.jpg')}}" width="150" name="save_facility_img">
                            @endif
                        </div>
                        <div class="w250">
                            <dl class="regist-facility__list">
                                <dt class="">施設種別</dt>
                                <dd class="" name="save_facility_property">{{$row->kind_name}}</dd>
                                <dt class="">施設名</dt>
                                <dd class="" name="save_facility_name">{{$row->name}}</dd>
                            </dl>
                        </div>
                        <div class="w350">
                            <dl class="regist-facility__list">
                                <dt class="mr10">現地までの距離</dt>
                                <dd>{{ $row->distance }}&nbsp;m&nbsp;（徒歩<span name="save_facility_time">{{$row->time}}</span>分）</dd>
                                <dt class="mr10">施設番号</dt>
                                <dd name="save_facility_num">{{$row->facility_id}}</dd>
                            </dl>
                        </div>
                    </div>
                </td>
            </tr>
        @endforeach
    </tbody>
</table>
