{{-- 地図・周辺施設 --}}
@php
$items1 = [];

for($i = 0; $i < 10; $i++){
  $item = new stdClass();
  $item->img = '../../business/img/nophoto.jpg';
  $item->number = '00000000';
  $item->type = 'ショッピングセンター';
  $item->name = 'スーパーあたりあたりあたりあたり';
  $item->access ='徒歩00分（約000m）';
  $item->gmap = '';
  array_push($items1, $item);
}
$items2 = $items1;
@endphp
<div class="p-detail-map-around d-flex justify-content-between">
  @foreach($facilities as $item)
    @if($loop->iteration == 1)
      <ul class="p-detail-map-around__left">
        <li class="p-detail-map-around__list-head">
          <p class="p-detail-map-around__list-head-photo">写真画像</p>
          <p class="p-detail-map-around__list-head-number">施設番号<br>施設種別</p>
          <p class="p-detail-map-around__list-head-name">施設名<br>徒歩分数/距離</p>
        </li>
    @elseif($loop->iteration == $facility_count+1)
      <ul class="p-detail-map-around__right">
        <li class="p-detail-map-around__list-head">
          <p class="p-detail-map-around__list-head-photo">写真画像</p>
          <p class="p-detail-map-around__list-head-number">施設番号<br>施設種別</p>
          <p class="p-detail-map-around__list-head-name">施設名<br>徒歩分数/距離</p>
        </li>
    @endif
    @if($loop->iteration <= $facility_count)
        <li class="p-detail-map-around__list-row">
          <div class="p-detail-map-around__list-row-photo">
            <img src="{{ $item->disp_file }}" width="80px">
          </div>
          <div class="p-detail-map-around__list-row-number">
            <p>{{ $item->id }}</p>
            <p>{{ $item->kind_name }}</p>
          </div>
          <div class="p-detail-map-around__list-row-name">
            <p>{{$item->name}}</p>
            <p class="clearfix">{{$item->access}} 
              
            </p>
          </div>
        </li>
    @else
        <li class="p-detail-map-around__list-row">
          <div class="p-detail-map-around__list-row-photo">
            <img src="{{ $item->disp_file }}" width="80px">
          </div>
          <div class="p-detail-map-around__list-row-number">
            <p>{{ $item->number }}</p>
            <p>{{ $item->type }}</p>
          </div>
          <div class="p-detail-map-around__list-row-name">
            <p>{{$item->name}}</p>
            <p class="clearfix">{{$item->access}} <a class="float-right" href="{{ $item->gmap }}">Googleマップ</a></p>
          </div>
        </li>
    @endif
    @if($loop->iteration = $facility_count)
      </ul>
    @elseif($loop->last)
      </ul>
    @endif
  @endforeach
</div>
