@extends('business.layouts.base')

{{-- header --}}
@section('contents-header')
    @include('business.objects.projects.search-results-header', ['title' => '分譲地'])
@endsection

@php
$buttons = [['id'=>'btnAllDisp', 'title' => '全物件表示']];

// TODO:並び替えデータ
$sorts = $sorts ?? [];

$sort = new stdClass();
$sort->name = '駅近い順';
$sort->class = 'station';
array_push($sorts, $sort);

$sort = new stdClass();
$sort->name = '所在地順';
$sort->class = 'address';
array_push($sorts, $sort);

$sort = new stdClass();
$sort->name = '沿線・駅順';
$sort->class = 'line';
array_push($sorts, $sort);
@endphp

@section('contents')
{{-- 画像有/リスト切り替え、除外ボタンリスト --}}
@include('business.objects.projects.results-switching', ['buttons' => $buttons])

{{-- 現在の検索条件 --}}
@include('business.objects.projects.results-current-condition', [])

{{-- 並び替え --}}
@include('business.objects.projects.results-sort', ['sorts' => $sorts])
@include('business.objects.projects.form-to-other', ['action' => route('business-mansion-detail', ['id' => '']), 'id' => 'link_detail', 'params' => $params])

{{-- 検索結果一覧 ※tab-img-or-list.bladeと連動 --}}
<div class="tab-content mt-3">
  <div class="tab-pane u-bg-default active" id="nav-image" role="tabpanel" aria-labell edby="nav-image-tab">
    @include('business.objects.projects.results-image-lot', ['type' => 'mansion', 'flag' => 3])
  </div>
  <div class="tab-pane u-bg-default" id="nav-list" role="tabpanel" aria-labelledby="nav-list-tab">
    @include('business.objects.projects.results-noimage-lot', ['data' => $article_list, 'flag' => 3])
  </div>
</div>

@endsection
