<section class="shisetsu">
<div class="detail-map__title">
    周辺施設
</div>

<div class="detail-map__locations">
@foreach($facility as $row)
    @if($loop->iteration % 2 == 1)
    <div class="detail-map__two-locations">
    @endif
        <div class="detail-map__location">
            <div class="detail-map__photo">
                @if(!empty($row->disp_file_path))
                <img src="{{$row->disp_file_path}}" width="89"/>
                @else
                <img src="{{root('img/noimage2.jpg')}}" width="89"/>
                @endif
            </div>
            <div class="detail-map__text">
                {{$row->name}}}<br>
                徒歩{{$row->time}}分（{{$row->distance}}ｍ）
            </div>
        </div>
    @if($loop->iteration % 2 == 0 || $loop->last)
    </div>
    @endif
@endforeach
    <p class="detail-map__alart">※施設までの徒歩による所要時間は、道路距離80mにつき1分間を要するものとして算出しております。</p>
</div>


<div class="detail-sheet__contact">
  <div class="detail-sheet__contacttitle"><strong>お問い合わせ先</strong></div>
@if(isset($store->id))
<dl>
  <dt>
    @if(!empty($store->file_path))
    <img src="{{$store->file_path}}" width="150" />
    @else
    <img src="{{root('img/noimage2.jpg')}}" width="150" />
    @endif
  <dd>
    <strong>三春情報センター{{$store->name}}<a href="/shop/{{$store->code}}">店舗紹介を見る</a></strong>
    <span>営業時間：{{$store->business_hours}}<br />
    定休日：{{$store->holiday}} </span>
    <small>※予告なく変更になる場合があります。</small>

  </dd>
</dl>
@endif
        <div class="shop-lists__contacts__banner">
@if(isset($charge->employee_number)) 
          <dl class="staff">
          <dt>@if(isset($charge->file_path))<img src="{{$charge->file_path}}" alt="">@endif</dt>
          <dd>
            <small>担当者</small>
            <em>{{$charge->last_name}} {{$charge->first_name}}</em>
            <small>{{$charge->last_name_kana}} {{$charge->first_name_kana}}<a href="/staff/{{$charge->employee_number}}.html">スタッフ紹介を見る</a></small>

          </dd>
        </dl>
@endif
        <div class="tel_pc">
          <span>お電話でお問い合わせ</span>
          <i class="fas fa-phone"></i>{{$store->freedial}}
          
        </div>
        <a class="tel_sp" href="tel:{{$store->freedial}}"><i class="fas fa-phone"></i>{{$store->freedial}}</a>

        <a href="/buy/reserve/{{$article->article_id}}" class="contact-mini__calendar">
            <i class="fas fa-calendar-alt"></i>見学予約
        </a>
        <a href="/buy/contact/{{$article->article_id}}" class="contact-mini__mail">
            <i class="far fa-envelope"></i>お問い合わせ
        </a>
	@if(false)
	  @php
		$list = session("favourites", []);
		if (in_array($id, $list)) {
			$selected = "selected";
			$text = "お気に入りを削除";
		}
		else {
			$text = "お気に入りに追加";
			$selected = "";
		}
	   @endphp
	@endif
			
		<span class="contact-mini__favorite" onclick="d_app.handleBtnFavoriteDetailsPage(event, 1);">
			<i class="far fa-heart"></i><span></span>
		</span>
        
        <a href="http://line.me/R/msg/text/?" class="contact-mini__line">
            <i class="fab fa-line"></i>LINEで共有
        </a>
    </div>



</div>
</section>
