@extends('admin.layouts.base')

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

@php

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

$sort1 = new stdClass();
$sort1->name = '新着順';
$sort1->class = 'new';
array_push($sorts, $sort1);

$sort2 = new stdClass();
$sort2->name = '価格が安い順';
$sort2->class = 'inexpensive';
array_push($sorts, $sort2);
@endphp

@section('contents')

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

{{-- 並び替え --}}
@include('admin.objects.projects.results-sort', ['sorts' => $sorts])

{{-- 検索結果一覧 ※tab-img-or-list.bladeと連動 --}}
<div class="tab-content mt-3">
  <div class="tab-pane u-bg-default active_con" id="nav-list" role="tabpanel" aria-labelledby="nav-list-tab">
    @include('admin.objects.projects.results-noimage-lot')
  </div>
</div>

@endsection
