@extends('admin.layouts.base')
@section('contents')

@php
// Place area
    $place_area = [
        ['code' => "", 'name' => '未選択'],
        ['code' => "安朱", 'name' => '安朱'],
        ['code' => "音羽", 'name' => '音羽'],
        ['code' => "勧修寺", 'name' => '勧修寺'],
        ['code' => "御陵", 'name' => '御陵'],
        ['code' => "四ノ宮", 'name' => '四ノ宮'],
        ['code' => "小山", 'name' => '小山'],
        ['code' => "上花山", 'name' => '上花山'],
        ['code' => "厨子奥", 'name' => '厨子奥'],
        ['code' => "西野", 'name' => '西野'],
        ['code' => "西野山", 'name' => '西野山'],
        ['code' => "川田", 'name' => '川田'],
        ['code' => "大宅", 'name' => '大宅'],
        ['code' => "大塚", 'name' => '大塚'],
        ['code' => "醍醐", 'name' => '醍醐'],
        ['code' => "竹鼻", 'name' => '竹鼻'],
        ['code' => "東野", 'name' => '東野'],
        ['code' => "藤尾", 'name' => '藤尾'],
        ['code' => "日ノ岡", 'name' => '日ノ岡'],
        ['code' => "北花山", 'name' => '北花山'],
        ['code' => "椥辻", 'name' => '椥辻'],
        ['code' => "小野", 'name' => '小野'],
    ];

if (auth()->user()->isOwnerOfSaiKyoto()) {
    $place_area = [
        ['code' => "", 'name' => '未選択'],
        ['code' => "上花山", 'name' => '上花山'],
        ['code' => "勧修寺", 'name' => '勧修寺'],
        ['code' => "北花山", 'name' => '北花山'],
        ['code' => "厨子奥", 'name' => '厨子奥'],
        ['code' => "四ノ宮", 'name' => '四ノ宮'],
        ['code' => "大塚", 'name' => '大塚'],
        ['code' => "大宅", 'name' => '大宅'],
        ['code' => "安朱（＋上野）", 'name' => '安朱（＋上野）'],
        ['code' => "小山（＋髭茶屋＋八軒屋敷）", 'name' => '小山（＋髭茶屋＋八軒屋敷）'],
        ['code' => "小野", 'name' => '小野'],
        ['code' => "川田", 'name' => '川田'],
        ['code' => "御陵", 'name' => '御陵'],
        ['code' => "日ノ岡", 'name' => '日ノ岡'],
        ['code' => "東野", 'name' => '東野'],
        ['code' => "椥辻", 'name' => '椥辻'],
        ['code' => "竹鼻", 'name' => '竹鼻'],
        ['code' => "藤尾（大津市）", 'name' => '藤尾（大津市）'],
        ['code' => "西野", 'name' => '西野'],
        ['code' => "西野山", 'name' => '西野山'],
        ['code' => "醍醐（＋小栗栖）", 'name' => '醍醐（＋小栗栖）'],
        ['code' => "音羽", 'name' => '音羽'],
    ];
}
//// 1 基本情報
$disp_num = [
    ['code' => 1, 'name' => 'する'],
    ['code' => 0, 'name' => 'しない'],
];

//// 2 価格
// 修繕・管理費
$cost_unit = [
    ['code' => 1, 'name' => '月'],
    ['code' => 2, 'name' => '年'],
];

$running_cost_unit = [
    ['code' => 1, 'name' => '月'],
    ['code' => 2, 'name' => '年'],
];

// その他諸費用
$other_cost_unit = [
    ['code' => 1, 'name' => '月'],
    ['code' => 2, 'name' => '年'],
    ['code' => 3, 'name' => '一括'],
    ['code' => 0, 'name' => '未選択'],
];

//// 3 物件概要
$mansion_unit1 = [
    ['code' => 1, 'name' => '壁芯'],
    ['code' => 2, 'name' => '登記'],
    ['code' => 0, 'name' => '未選択'],
];

$mansion_cost_unit = [
    ['code' => 1, 'name' => '月'],
    ['code' => 2, 'name' => '年'],
    ['code' => 0, 'name' => '未選択'],
];

$parking = [
    ['code' => 1, 'name' => '無'],
    ['code' => 2, 'name' => '駐車場空無'],
    ['code' => 3, 'name' => '駐車場空有'],
    ['code' => 4, 'name' => '分譲駐車場(必購入)'],
    ['code' => 5, 'name' => '分譲駐車場(任意購入)'],
    ['code' => 6, 'name' => '専用使用権付駐車場'],
    ['code' => 7, 'name' => '空き未確認'],
    ['code' => 0, 'name' => '未選択'],
];

$maisonette = [
    ['code' => 1, 'name' => 'メゾネット']
];

$floor = [
    ['code' => 1, 'name' => 1],
    ['code' => 2, 'name' => 2],
    ['code' => 3, 'name' => 3],
    ['code' => 4, 'name' => 4],
    ['code' => 5, 'name' => 5],
    ['code' => 6, 'name' => 6],
    ['code' => 7, 'name' => 7],
    ['code' => 8, 'name' => 8],
    ['code' => 9, 'name' => 9],
    ['code' => 10, 'name' => 10],
    ['code' => 11, 'name' => 11],
    ['code' => 12, 'name' => 12],
    ['code' => 13, 'name' => 13],
    ['code' => 14, 'name' => 14],
    ['code' => 15, 'name' => 15],
];

$parking_unit = [
    ['code' => 1, 'name' => '未選択'],
    ['code' => 2, 'name' => '〜'],
    ['code' => 3, 'name' => '・'],
];

//// 4 投資・事業用
// 区分
$classification = [
    ['code' => 1, 'name' => '居住用'],
    ['code' => 2, 'name' => '事業用'],
    ['code' => 3, 'name' => '投資用'],
];

// 売買区分_事業用
$buy_class = [
    ['code' => 1, 'name' => '一室売'],
    ['code' => 2, 'name' => '一括売'],
];

// 事業用用途
$use_method = [
    ['code' => 4, 'name' => '店舗'],
    ['code' => 5, 'name' => '事務所'],
    ['code' => 8, 'name' => '倉庫'],
    ['code' => 7, 'name' => '工場'],
    ['code' => 9, 'name' => 'その他'],
    ['code' => 0, 'name' => '未選択'],
];

// 事業用引き渡し状態
$use_status = [
    ['code' => 1, 'name' => '造作譲渡あり'],
    ['code' => 2, 'name' => '造作譲渡なし'],
    ['code' => 3, 'name' => '設備無償譲渡'],
    ['code' => 4, 'name' => 'スケルトン渡し'],
    ['code' => 0, 'name' => '未選択'],
];

// 投資用現況
$investment = [
    ['code' => 1, 'name' => '貸借人なし'],
    ['code' => 2, 'name' => '貸借人あり（オーナーチェンジ）'],
];

$investment_unit = [
    ['code' => 1, 'name' => '月'],
    ['code' => 2, 'name' => '年'],
];

//// 5 取引情報
// 広告掲載確認
$ad_conf = [
    ['code' => 1, 'name' => '未'],
    ['code' => 2, 'name' => '可'],
    ['code' => 3, 'name' => '不可'],
];

// 会員物件
$members = [
    ['code' => 0, 'name' => '全員に公開'],
    ['code' => 1, 'name' => '会員限定'],
];

$ad_instructions = [
    ['code' => 1, 'name' => '未'],
    ['code' => 2, 'name' => '入稿'],
];

$own_instructions = [
    ['code' => 1, 'name' => '未掲載'],
    ['code' => 2, 'name' => '掲載'],
];

//// 6 画像
// 画像種類
$image_kind = [
    ['code' => 1, 'name' => '区画図'],
    ['code' => 2, 'name' => '間取り'],
    ['code' => 3, 'name' => '参考プラン'],
    ['code' => 0, 'name' => '未選択'],
];

//// 7 イベント
// イベントカテゴリ
$event_category = [
    ['code' => 1, 'name' => '現地見学会'],
    ['code' => 2, 'name' => '現地案内会'],
    ['code' => 3, 'name' => '現地販売会'],
    ['code' => 4, 'name' => 'オープンハウス'],
    ['code' => 5, 'name' => 'オープンルーム'],
    ['code' => 0, 'name' => '未選択'],
];

// イベント日程
$event_schedule = [
    ['code' => 1, 'name' => '毎週土日祝'],
    ['code' => 2, 'name' => '毎週土日'],
    ['code' => 3, 'name' => '日時指定'],
    ['code' => 4, 'name' => '期間限定'],
    ['code' => 5, 'name' => '公開中'],
    ['code' => 0, 'name' => '未選択'],
];

// イベント予約
$reservation = [
    ['code' => 1, 'name' => '完全予約制'],
];

// イベント予約
$vendor_building_photo = [
    ['code' => 1, 'name' => '優先使用'],
    ['code' => 2, 'name' => '不使用'],
];
@endphp

@if($errors->any())
<div class="error">
    <ul>
        <li><a href="#vendor_article">{{$errors->first('vendor_id.*')}}</a></li>
        <li><a href="#vendor_article">{{$errors->first('manner.*')}}</a></li>
        <li><a href="#price">{{$errors->first('price')}}</a></li>
        <li><a href="#price">{{$errors->first('*cost*')}}</a></li>
        <li><a href="#overview">{{$errors->first('*area*')}}</a></li>
{{--     @foreach($errors->all() as $message)--}}
{{--        <li>{{ $message }}</li>--}}
{{--     @endforeach--}}
    </ul>
</div>
@endif
<table class="p-regist__table d-none" id="vendor_template">
    <tbody>
    <tr>
        <th rowspan="5" class="p-regist__table-colspan" name="vendor_num"></th>
        <th class="p-regist__table-colspan">業者名</th>
        <td>
            @include('admin.objects.components.hidden', ['name' => 'vendor_id[]'])
            @include('admin.objects.components.input', ['name' => 'vendor_name', 'class' => 'w300', 'other_attr' => 'readonly'])
            @include('admin.objects.components.modal-btn', ['title' => '業者検索', 'class'=> 'btn_search', 'data' => 9, 'btn_name' => 'vendor_modal_btn'])
        </td>
        <td rowspan="5" class="p-regist__table-registtrader">
            @include('admin.objects.components.btn', ['name' => 'del_vendor', 'class' => '', 'title' => '削除', 'type' => 'button'])
        </td>
    </tr>
    <tr>
        <th>電話/FAX/担当</th>
        <td class="d-flex justify-content-between border-0">
            <div>
                電話&nbsp;@include('admin.objects.components.input', ['name' => 'vendor_tel', 'other_attr' => 'readonly', 'class' =>'w180'])
            </div>
            <div>
                FAX&nbsp;@include('admin.objects.components.input', ['name' => 'vendor_fax', 'other_attr' => 'readonly', 'class' =>'w180'])
            </div>
            <div>
                担当&nbsp;@include('admin.objects.components.input', ['name' => 'vendor_charge[]', 'class' =>'w120'])
            </div>
        </td>
    </tr>
    <tr>
        <th>広告掲載確認/広告確認日</th>
        <td>
            <ul class="d-flex p-regist__table-list">
                <li>
                    <p>チラシ</p>
                    @include('admin.objects.components.selectbox', ['name' => 'flyer[]', 'options' => $ad_conf])
                </li>
                <li>
                    <p>情報誌</p>
                    @include('admin.objects.components.selectbox', ['name' => 'freepaper[]', 'options' => $ad_conf])
                </li>
                <li>
                    <p>自社HP</p>
                    @include('admin.objects.components.selectbox', ['name' => 'house_hp[]', 'options' => $ad_conf])
                </li>
                <li>
                    <p>ポータル</p>
                    @include('admin.objects.components.selectbox', ['name' => 'portal[]', 'options' => $ad_conf])
                </li>

                <li>
                    <p>現地看板</p>
                    @include('admin.objects.components.selectbox', ['name' => 'signboard[]', 'options' => $ad_conf])
                </li>
                <li>
                    <p></p>
                    @include('admin.objects.components.btn', ['name' => 'all_ad[]', 'class' => 'btn_allcheck', 'title' => '全不可チェック'])
                </li>
                <li>
                    <p>広告確認日</p>
                    @include('admin.objects.components.input', ['name' => 'ad_conf_day[]', 'class' => 'cal_picker', 'placeholder' => '0000/00/00'])
                </li>
            </ul>

        </td>
    </tr>
    <tr>
        <th class="p-regist__table-colspan">取引態様</th>
        <td>
            @include('admin.objects.components.selectbox', ['name' => 'manner[]', 'required' => 'required', 'options' => $manner, ])
        </td>
    </tr>
    <tr>
        <th>備考</th>
        <td>
            @include('admin.objects.components.input', ['name' => 'home_note[]', 'placeholder' => '備考', 'class' => 'w-100' ])
        </td>
    </tr>
    </tbody>
</table>
<form method="POST" action="{{ route('regist-room', ['id' => $article->building_id]) }}" enctype="multipart/form-data">
{{ csrf_field() }}
    @include('admin.objects.components.base-tab')
    @include('admin.objects.components.regist-tab', ['title' => '物件登録-マンション（部屋）', 'active' => 'base'])
    <div>
        @include('admin.objects.components.regist-band', ['title' => '１.基本情報'])
        <div class="p-regist">
            <table class="p-regist__table">
                <tbody>
                  <tr>
                      <th colspan="2">物件番号</th>
                      <td>
                          未設定
                      </td>
                  </tr>
                    <tr>
                        <th colspan="2">マンション名</th>
                        <td>
                          <span>{{$article->building_id}}</span>
                          @include('admin.objects.components.hidden', ['name' => 'room', 'value' => '1'])
                            <span class="mansion_name ml10">{{$article->name_apartment}}</span>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">物件種別</th>
                        <td>
                            @if($article->property_sub == 1)
                                新築
                            @elseif($article->property_sub == 2)
                                中古
                            @endif

                            @if($article->property == 6)
                                マンション
                            @elseif($article->property == 7)
                                タウンハウス
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>物件名</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.components.input', ['name' => 'name', 'class' => 'w400', 'count' => 30, 'placeholder' => '物件名を３０文字以内で入力', 'value' => $article->name_apartment])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>部屋番号</div>
                                 <!--<span class="require">必須</span>-->
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.components.input', ['name' => 'room_num', 'class' => 'w50'])号室　
                            部屋番号の表示
                            @include('admin.objects.components.radio', ['name' => 'room_num_disp', 'radio' => $disp_num, 'default' => 0])
                            <!--<span class="alart">※SUUMOで必須項目のため、入力されていなければSUUMOに飛びません。</span>-->
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">物件名（ポータル用）</th>
                        <td>
                            @include('admin.objects.components.input', ['name' => 'name_portal', 'class' => 'w400', 'count' => 30, 'placeholder' => '物件名を３０文字以内で入力'])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">未入居</th>
                        <td class="">
                            @include('admin.objects.components.checkbox', ['name' => 'occupied', 'checkbox' => $occupied])
                            <div>
                            ※「未入居」とは、建築後１年以上経過したものであって、かつ居住の用に供されたことがない物件のことを指します。<br>
                              居住の用に供されたことのあるリフォーム済・リノベーション済物件は「中古」
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">収益物件</th>
                        <td>
                            @include('admin.objects.components.checkbox', ['name' => 'revenue', 'checkbox' => $revenue])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">ステータス</th>
                        <td>
                            @include('admin.objects.components.selectbox', ['name' => 'status', 'options' => $statuses])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                          <div class="d-flex justify-content-between">
                              <div>物件取扱店舗名</div>
                              <span class="require">必須</span>
                          </div>
                        </th>
                        <td>
                            @include('admin.objects.components.selectbox', ['name' => 'shop', 'options' => $shops, 'title' => ''])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">所在地</th>
                        <td>
                            &#12306;{{$article->zip}}<br>
                            {{$article->address_info}}
                            @include('admin.objects.components.hidden', ['name' => 'zip', 'value' => $article->zip])
                            @include('admin.objects.components.hidden', ['name' => 'address1', 'value' => $article->address1])
                            @include('admin.objects.components.hidden', ['name' => 'address2', 'value' => $article->address2])
                            @include('admin.objects.components.hidden', ['name' => 'address3', 'value' => $article->address3])
                            @include('admin.objects.components.hidden', ['name' => 'address4', 'value' => $article->address4])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">物件位置情報</th>
                        <td>
                            緯度: {{ $article->lat }}
                            経度: {{ $article->lng }}
                        </td>
                    </tr>
                    <input type="hidden" name="lat" id="" value="{{ $article->lat }}">
                    <input type="hidden" name="lng" id="" value="{{ $article->lng }}">
                    <tr>
                        <th colspan="2">交通</th>
                        <td>
                            @include("admin.objects.components.for-sale-traffic", ["item" => $article])
                            @include('admin.objects.components.hidden', ['name' => 'main_traffic', 'value' => $article->main_traffic])

                            @include('admin.objects.components.hidden', ['name' => 'main_traffic_line', 'value' => $article->main_traffic_line])
                            @include('admin.objects.components.hidden', ['name' => 'main_traffic_line_id', 'value' => $article->main_traffic_line_id])
                            @include('admin.objects.components.hidden', ['name' => 'main_traffic_station', 'value' => $article->main_traffic_station])
                            @include('admin.objects.components.hidden', ['name' => 'main_traffic_station_id', 'value' => $article->main_traffic_station_id])
                            @include('admin.objects.components.hidden', ['name' => 'main_traffic_time', 'value' => $article->main_traffic_time])

                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic1_line', 'value' => $article->sub_traffic1_line])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic1_line_id', 'value' => $article->sub_traffic1_line_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic1_station', 'value' => $article->sub_traffic1_station])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic1_station_id', 'value' => $article->sub_traffic1_station_id])

                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic1_time', 'value' => $article->sub_traffic1_time])

                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic2_line', 'value' => $article->sub_traffic2_line])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic2_line_id', 'value' => $article->sub_traffic2_line_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic2_station', 'value' => $article->sub_traffic2_station])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic2_station_id', 'value' => $article->sub_traffic2_station_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic2_time', 'value' => $article->sub_traffic2_time])

                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic3_line', 'value' => $article->sub_traffic3_line])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic3_line_id', 'value' => $article->sub_traffic3_line_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic3_station', 'value' => $article->sub_traffic3_station])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic3_station_id', 'value' => $article->sub_traffic3_station_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic3_time', 'value' => $article->sub_traffic3_time])

                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic4_line', 'value' => $article->sub_traffic4_line])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic4_line_id', 'value' => $article->sub_traffic4_line_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic4_station', 'value' => $article->sub_traffic4_station])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic4_station_id', 'value' => $article->sub_traffic4_station_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic4_time', 'value' => $article->sub_traffic4_time])

                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic5_line', 'value' => $article->sub_traffic5_line])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic5_line_id', 'value' => $article->sub_traffic5_line_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic5_station', 'value' => $article->sub_traffic5_station])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic5_station_id', 'value' => $article->sub_traffic5_station_id])
                            @include('admin.objects.components.hidden', ['name' => 'sub_traffic5_time', 'value' => $article->sub_traffic5_time])

                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">学校区</th>
                        <td>
                            @if(isset($article->primary_school_name))
                                {{$article->primary_school_name}}&nbsp;約{{$article->primary_school_distance}}m&nbsp; @if(isset($article->primary_school_time))/&nbsp;徒歩{{$article->primary_school_time}}分 @endif <br>
                                @include('admin.objects.components.hidden', ['name' => 'primary_school_city', 'value' => $article->primary_school_city])
                                @include('admin.objects.components.hidden', ['name' => 'primary_school_school', 'value' => $article->primary_school_school])
                                @include('admin.objects.components.hidden', ['name' => 'primary_school_distance', 'value' => $article->primary_school_distance])
                            @endif
                            @if(isset($article->primary_school_name2))
                                {{$article->primary_school_name2}}&nbsp;約{{$article->primary_school2_distance}}m&nbsp; @if(isset($article->primary_school2_time))/&nbsp;徒歩{{$article->primary_school2_time}}分 @endif <br>
                                @include('admin.objects.components.hidden', ['name' => 'primary_school2_city', 'value' => $article->primary_school2_city])
                                @include('admin.objects.components.hidden', ['name' => 'primary_school2_school', 'value' => $article->primary_school2_school])
                                @include('admin.objects.components.hidden', ['name' => 'primary_school2_distance', 'value' => $article->primary_school2_distance])
                            @endif
                            @if(isset($article->secondary_school_name))
                                {{$article->secondary_school_name}}&nbsp;約{{$article->secondary_school_distance}}m&nbsp; @if(isset($article->secondary_school_time))/&nbsp;徒歩{{$article->secondary_school_time}}分 @endif <br>
                                @include('admin.objects.components.hidden', ['name' => 'secondary_school_city', 'value' => $article->secondary_school_city])
                                @include('admin.objects.components.hidden', ['name' => 'secondary_school_school', 'value' => $article->secondary_school_school])
                                @include('admin.objects.components.hidden', ['name' => 'secondary_school_distance', 'value' => $article->secondary_school_distance])
                            @endif
                            @if(isset($article->secondary_school_name2))
                                {{$article->secondary_school_name2}}&nbsp;約{{$article->secondary_school2_distance}}m&nbsp; @if(isset($article->secondary_school_time2))/&nbsp;徒歩{{$article->secondary_school_time2}}分 @endif
                                @include('admin.objects.components.hidden', ['name' => 'secondary_school2_city', 'value' => $article->secondary_school2_city])
                                @include('admin.objects.components.hidden', ['name' => 'secondary_school2_school', 'value' => $article->secondary_school2_school])
                                @include('admin.objects.components.hidden', ['name' => 'secondary_school2_distance', 'value' => $article->secondary_school2_distance])
                            @endif

                            @if(isset($article->other_primary_school_2))
                                {{$article->other_primary_school_name}}約{{$article->other_primary_school_3}}m
                                @if(isset($article->other_primary_school_time))
                                    /徒歩{{$article->other_primary_school_time}}分　
                                @endif<br>
                            @endif
                            @if(isset($article->other_secondary_school_2))
                                {{$article->other_secondary_school_name}}約{{$article->other_secondary_school_3}}m
                                @if(isset($article->other_secondary_school_time))
                                    /徒歩{{$article->other_secondary_school_time}}分　
                                @endif<br>
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">備考1(社内用)</th>
                        <td>
                            @include('admin.objects.components.textarea', ['name' => 'memo1', 'class' => 'ta500', 'count' => 500, 'placeholder' => '備考を５００文字以内で入力してください', 'value' => $article->memo1])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">備考2(社内用)</th>
                        <td>
                            @include('admin.objects.components.textarea', ['name' => 'memo2', 'class' => 'ta500', 'count' => 500, 'placeholder' => '備考を５００文字以内で入力してください', 'value' => $article->memo2])
                        </td>
                    </tr>
                  <tr>
                      <th colspan="2">BK</th>
                      <td>
                          @include('admin.objects.components.input', ['name' => 'bk', 'class' => 'w500'])
                      </td>
                  </tr>
                  <tr>
                      <th colspan="2">鍵</th>
                      <td>
                          @include('admin.objects.components.input', ['name' => 'key_text', 'class' => 'w500'])
                      </td>
                  </tr>
		@if (auth()->user()->isOwnerOfSaiKyoto())
		    <tr>
                        <th colspan="2">所在地エリア</th>
                        <td>
                            {{ $article->place_area }}
                            @include('admin.objects.components.hidden', ['name' => 'place_area', 'value' => $article->place_area])
{{--                            @include('admin.objects.components.selectbox', ['name' => 'place_area', 'class' => 'w150', 'options' => $place_area])--}}
                        </td>
                    </tr>
		@endif
                    <tr>
                        <th colspan="2">レインズ番号</th>
                        <td>
                            <p></p>
                        </td>
                    </tr>
                    @include('admin.objects.projects.original')
                    <tr>
                        <th colspan="2">
                             <div class="d-flex justify-content-between">
                                  <div class="search_target_title">物件登録日</div>
                                  <span class="search_target">検索</span>
                              </div>
                         </th>

                        <td></td>
                    </tr>
                    <tr>
                        <th colspan="2">
                          <div class="d-flex justify-content-between">
                              <div>取引態様</div>
                              <span class="require">必須</span>
                          </div>
                        </th>
                        <td>
                        @include('admin.objects.components.selectbox', ['name' => 'company_manner', 'options' => $manner, 'title' => '取引態様', 'selected' => 9])
                        <span class="require_alart">※先物の場合は仲介を選択。※「自社」の取引態様を選択してください。「業者」の取引態様ではありません。</span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    @include('admin.objects.components.regist-tab', ['active' => 'price'])
    <div>
        @include('admin.objects.components.regist-band', ['title' => '２.価格'])
        <div class="p-regist">
            <table class="p-regist__table">
                <tbody>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>価格</div>
                                <span class="require">必須</span>
                            </div>
                        </th>
                        <td>
                            @include('admin.objects.components.input', ['name' => 'price', 'class' => 'w100 half-size'])万円&nbsp;
                            @include('admin.objects.components.selectbox', ['name' => 'tax', 'options' => $tax])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">物件価格変更履歴</th>
                        <td>
                            <span>未設定</span>
                            @include('admin.objects.components.hidden', ['name' => 'name_bunjyou'])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>管理費</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.projects.umu3-radio', ['name' => 'management', 'default' => 2])
                            </div>
                            <div id="management_cost_area">
                                @include('admin.objects.components.input', ['name' => 'management_cost', 'class' => 'half-size'])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'management_cost_unit', 'radio' => $cost_unit, 'default' => 1])
                            </div>

                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>修繕積立金</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.projects.umu3-radio', ['name' => 'repair', 'default' => 2])
                            </div>
                            <div id="repair_cost_area">
                                @include('admin.objects.components.input', ['name' => 'repair_cost', 'class' => 'half-size'])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'repair_cost_unit', 'radio' => $cost_unit, 'default' => 1])
                            </div>

                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>修繕積立基金</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.projects.fund-radio-cost', ['name' => 'repair_fund', 'default' => 2])
                            </div>
                            <div id="repair_fund_area">
                                @include('admin.objects.components.input', ['name' => 'repair_fund_unit', 'class' => 'half-size'])円（一括）
                            </div>

                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">地代</th>
                        <td>
                            @include('admin.objects.projects.umu-radio', ['name' => 'land_rent', 'default' => 0, 'checked' => 0])
                            <div id="land_rent_area">
                                @include('admin.objects.components.input', ['name' => 'land_rent_val', 'class' => 'half-size', 'value' => ''])円/
                                @include('admin.objects.components.radio', ['name' => 'land_rent_unit', 'radio' => $land_rent_unit, 'default' => 1, 'checked' => 1])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>駐車場（敷地内）</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'parking', 'radio' => $parking, 'default' => 0])
                            </div>
{{--                            <div id="parking_cost_area" class="parking_cost_area">--}}
{{--                                料金&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_yes', 'default' => 1])--}}
{{--                                <div id="parking_yes_area_2">--}}
{{--                                    @include('admin.objects.components.input', ['name' => 'parking_yes_cost_from', 'class' => 'w150'])円--}}
{{--                                    @include('admin.objects.components.selectbox', ['name' => 'parking_yes_cost_range', 'options' => $parking_unit])--}}
{{--                                    @include('admin.objects.components.input', ['name' => 'parking_yes_cost_to', 'class' => 'w150'])円--}}
{{--                                    @include('admin.objects.components.radio', ['name' => 'parking_yes_cost_unit', 'radio' => $cost_unit, 'default' => 1])--}}
{{--                                    @include('admin.objects.components.input', ['name' => 'parking_yes_cost_date', 'class' => 'cal_picker', 'placeholder' => '0000/00/00'])現在--}}
{{--                                </div>--}}
{{--                            </div>--}}

                            <div id="parking_cost_area_3" class="parking_cost_area">
                                料金&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_yes', 'default' => 1])
                                <div id="parking_yes_area">
                                    @include('admin.objects.components.input', ['name' => 'parking_yes_cost_from', 'class' => 'w150 half-size', 'value' => $article->parking_yes_cost_from])円
                                    @include('admin.objects.components.selectbox', ['name' => 'parking_yes_cost_range', 'options' => $parking_unit, 'selected' => $article->parking_yes_cost_range])
                                    @include('admin.objects.components.input', ['name' => 'parking_yes_cost_to', 'class' => 'w150 half-size', 'value' => $article->parking_yes_cost_to])円
                                    @include('admin.objects.components.radio', ['name' => 'parking_yes_cost_unit', 'radio' => $cost_unit, 'default' => 1, 'checked' => $article->parking_yes_cost_unit])
                                    @include('admin.objects.components.input', ['name' => 'parking_yes_cost_date', 'class' => 'cal_picker', 'placeholder' => '0000/00/00', 'value' => !empty($article->parking_yes_cost_date) ? date('y-m-d', strtotime($article->parking_yes_cost_date)) : ""])現在
                                </div>
                            </div>
                            <div id="parking_cost_area_4" class="parking_cost_area">
                                <div>
                                   分譲価格&nbsp;@include('admin.objects.components.input', ['name' => 'parking_require_cost', 'class' => 'w150 half-size'])円（物件価格に含む）
                                </div>
                                <div>
                                    管理費&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_require_management', 'default' => 0])
                                    <div id="parking_require_management_area">
                                    @include('admin.objects.components.input', ['name' => 'parking_require_management_cost', 'class' => 'w150 half-size'])円 / @include('admin.objects.components.radio', ['name' => 'parking_require_management_unit', 'radio' => $cost_unit, 'default' => 1])
                                    </div>
                                </div>
                                <div>
                                    修繕積立金&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_require_repair', 'default' => 0])
                                    <div id="parking_require_repair_area">
                                        @include('admin.objects.components.input', ['name' => 'parking_require_repair_cost', 'class' => 'w150 half-size'])円 / @include('admin.objects.components.radio', ['name' => 'parking_require_repair_unit', 'radio' => $cost_unit, 'default' => 1])
                                    </div>
                                </div>
                                <div>
                                    修繕積立基金&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_require_fund', 'default' => 0])
                                    <div id="parking_require_repair_area">
                                        @include('admin.objects.components.input', ['name' => 'parking_require_fund_cost', 'class' => 'w150 half-size'])円（一括払い）
                                    </div>
                                </div>
                            </div>
                            <div id="parking_cost_area_5" class="parking_cost_area">
                                <div>
                                    分譲価格&nbsp;@include('admin.objects.components.input', ['name' => 'parking_any_cost_from', 'class' => 'w150 half-size'])円
                                    @include('admin.objects.components.selectbox', ['name' => 'parking_any_cost_range', 'options' => $parking_unit])
                                    @include('admin.objects.components.input', ['name' => 'parking_any_cost_to', 'class' => 'w150 half-size'])円（物件価格に含まない）
                                </div>
                                <div>
                                    管理費&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_any_management', 'default' => 0])
                                    <div id="parking_any_management_area">
                                    @include('admin.objects.components.input', ['name' => 'parking_any_management_cost', 'class' => 'w150 half-size'])円 / @include('admin.objects.components.radio', ['name' => 'parking_any_management_unit', 'radio' => $cost_unit, 'default' => 1])
                                    </div>
                                </div>
                                <div>
                                    修繕積立金&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_any_repair', 'default' => 0])
                                    <div id="parking_any_repair_area">
                                        @include('admin.objects.components.input', ['name' => 'parking_any_repair_cost', 'class' => 'w150 half-size'])円 / @include('admin.objects.components.radio', ['name' => 'parking_any_repair_unit', 'radio' => $cost_unit, 'default' => 1])
                                    </div>
                                </div>
                                <div>
                                    修繕積立基金&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_any_fund', 'default' => 0])
                                    <div id="parking_any_repair_area">
                                        @include('admin.objects.components.input', ['name' => 'parking_any_fund_cost', 'class' => 'w150 half-size'])円（一括払い）
                                    </div>
                                </div>
                            </div>
                            <div id="parking_cost_area_6" class="parking_cost_area">
                                    使用料&nbsp;@include('admin.objects.projects.umu-radio', ['name' => 'parking_designated', 'default' => 0])
                                <div id="parking_designated_area">
                                    @include('admin.objects.components.input', ['name' => 'parking_designated_cost', 'class' => 'w150 half-size'])円<span class="require_alart">※SUUMOで必須項目</span> / @include('admin.objects.components.radio', ['name' => 'parking_designated_unit', 'radio' => $cost_unit, 'default' => 1])
                                    備考&nbsp;@include('admin.objects.components.input', ['name' => 'parking_designated_text', 'class' => 'w300'])
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>駐車場（敷地外）</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.projects.umu3-radio', ['name' => 'parking_out', 'default' => 2])
                            </div>
                            <div id="parking_out_area">
                                @include('admin.objects.components.input', ['name' => 'parking_out_cost_from', 'class' => 'w150 half-size'])円
                                @include('admin.objects.components.selectbox', ['name' => 'parking_out_cost_range', 'options' => $parking_unit])
                                @include('admin.objects.components.input', ['name' => 'parking_out_cost_to', 'class' => 'w150 half-size'])円
                                @include('admin.objects.components.radio', ['name' => 'parking_out_cost_unit', 'radio' => $cost_unit, 'default' => 1])
                                @include('admin.objects.components.input', ['name' => 'parking_out_cost_date', 'class' => 'cal_picker', 'placeholder' => '0000/00/00'])現在
                            </div>
                        </td>
                    </tr>
                    <!--<tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>有線放送に係る費用</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.umu-radio-cost', ['name' => 'broadcasting', 'default' => 2])
                            <div class="initial_cost">
                                初期費用@include('admin.objects.projects.umu-money-radio', ['name' => 'broadcasting_presence', 'default' => 0])
                                <div class="initial_cost_detail">
                                    @include('admin.objects.components.input', ['name' => 'broadcasting_cost'])円
                                </div>
                            </div>

                            <div class="running_cost">
                                定額費用@include('admin.objects.projects.umu-money-radio', ['name' => 'broadcasting_fixed_presence', 'default' => 0])
                                <div class="running_cost_detail">
                                    @include('admin.objects.components.input', ['name' => 'broadcasting_fixed_cost'])円&#047;
                                    @include('admin.objects.components.radio', ['name' => 'broadcasting_fixed_cost_unit', 'radio' => $running_cost_unit, 'default' => 1])
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>インターネットに係る費用</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.umu-radio-cost', ['name' => 'internet', 'default' => 2])
                            <div class="initial_cost">
                                初期費用@include('admin.objects.projects.umu-money-radio', ['name' => 'internet_presence', 'default' => 0])
                                <div class="initial_cost_detail">
                                    @include('admin.objects.components.input', ['name' => 'internet_cost'])円
                                </div>
                            </div>
                            <div class="running_cost">
                                定額費用@include('admin.objects.projects.umu-money-radio', ['name' => 'internet_fixed_presence', 'default' => 0])
                                <div class="running_cost_detail">
                                    @include('admin.objects.components.input', ['name' => 'internet_fixed_cost'])円&#047;
                                    @include('admin.objects.components.radio', ['name' => 'internet_fixed_cost_unit', 'radio' => $running_cost_unit, 'default' => 1])
                               </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>CATVに係る費用</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.umu-radio-cost', ['name' => 'catv', 'default' => 2])
                            <div class="initial_cost">
                                初期費用@include('admin.objects.projects.umu-money-radio', ['name' => 'catv_presence', 'default' => 0])
                                <div class="initial_cost_detail">
                                    @include('admin.objects.components.input', ['name' => 'catv_cost'])円
                                </div>
                            </div>
                            <div class="running_cost">
                                定額費用@include('admin.objects.projects.umu-money-radio', ['name' => 'catv_fixed_presence', 'default' => 0])
                                <div class="running_cost_detail">
                                    @include('admin.objects.components.input', ['name' => 'catv_fixed_cost'])円&#047;
                                    @include('admin.objects.components.radio', ['name' => 'catv_fixed_cost_unit', 'radio' => $running_cost_unit, 'default' => 1])
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>町会費など</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'council', 'radio' => $council_cost, 'default' => 0])
                            </div>
                            <div id="council_presence_area">
                                @include('admin.objects.projects.umu-money-radio', ['name' => 'council_presence', 'default' => 0])
                            </div>
                            <div id="council_cost_area">
                                @include('admin.objects.components.input', ['name' => 'council_cost'])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'council_cost_unit', 'radio' => $cost_unit, 'default' => 0])
                            </div>

                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>温泉</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'spring', 'radio' => $spring_cost, 'default' => 0])
                            </div>
                            <div id="spring_area">
                                @include('admin.objects.projects.umu-money-radio', ['name' => 'spring_presence', 'default' => 0])
                            </div>
                            <div id="spring_cost_area">
                                @include('admin.objects.components.input', ['name' => 'spring_cost'])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'spring_cost_unit', 'radio' => $cost_unit, 'default' => 0])
                            </div>
                            <div id="spring_kind_area">
                                <p class="mb-0">天然温泉ではない場合は選択</p>
                                @include('admin.objects.components.checkbox', ['name' => 'spring_kind', 'checkbox' => $spring_kind])
                            </div>
                        </td>
                    </tr>-->
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>その他諸費用１</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            <div>
                                名称
                                @include('admin.objects.components.input', ['name' => 'another_cost_name1'])
                            </div>
                            <div>
                                金額
                                @include('admin.objects.components.input', ['name' => 'another_cost1', 'class' => 'half-size'])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'another_cost_unit1', 'radio' => $other_cost_unit, 'default' => 0])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            <div class="d-flex justify-content-between">
                                <div>その他諸費用２</div>
                                <span class="require_applicable">該当必須</span>
                            </div>
                        </th>
                        <td>
                            <div>
                                名称
                                @include('admin.objects.components.input', ['name' => 'another_cost_name2'])
                            </div>
                            <div>
                                金額
                                @include('admin.objects.components.input', ['name' => 'another_cost2', 'class' => 'half-size'])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'another_cost_unit2', 'radio' => $other_cost_unit, 'default' => 0])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">その他諸費用３</th>
                        <td>
                            @include('admin.objects.components.textarea', ['name' => 'another_cost3', 'class' => 'ta500', 'placeholder' => 'その他諸費用'])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">価格備考(社内用)</th>
                        <td>
                            @include('admin.objects.components.textarea', ['name' => 'price_note', 'class' => 'ta500', 'placeholder' => '価格備考', 'value' => $article->price_note])
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    @include('admin.objects.components.regist-tab', ['active' => 'overview'])
    <div>
        @include('admin.objects.components.regist-band', ['title' => '３.物件概要'])
        <div class="p-regist">
            <table class="p-regist__table">
                <tbody>
                    <tr>
                        <th colspan="2">土地権利</th>
                        <td>
                            @if(isset($article->land_right) && $article->land_right != 0)
                                {{ $arry_land_right[$article->land_right] }} <br>
                                @if($article->land_right == 2 || $article->land_right == 3)
                                    借地権種別:{{$arr_leasehold_kind[$article->leasehold_kind]}} <br>
                                    @if($article->land_right == 3)
                                        借地権割合: {{$article->leasehold_rate}}% <br>
                                    @endif
                                    地代: @if($article->land_rent == 1)
                                        {{$article->land_rent_val}}円/ {{$arr_land_rent_unit[$article->land_rent_unit]}} <br>
                                    @else
                                        無 <br>
                                    @endif
                                    借地期間: {{$article->leasehold_period == 1 ? "残存" : "新規"}} ({{$article->leasehold_period_year}}年{{$article->leasehold_period_month}}ヶ月)<br>
                                    権利金:
                                    @if($article->right_cost == 1)
                                        {{$article->right_cost_val}}万円 <br>
                                    @else
                                        無 <br>
                                    @endif
                                    保証金:
                                    @if($article->deposit_cost == 1)
                                        {{$article->deposit_cost_val}}万円 <br>
                                    @else
                                        無 <br>
                                    @endif
                                    敷金:
                                    @if($article->deposit_cost == 1)
                                        {{$article->security_deposit_cost_val}}万円 <br>
                                    @else
                                        無 <br>
                                    @endif
                                    借地権その他契約事項: {{$article->other_leasehold}} <br>
                                    @if($article->leasehold_kind == 3 || $article->leasehold_kind == 4 || $article->leasehold_kind == 7 || $article->leasehold_kind == 8)
                                        定期借地権設定登記: {{$arr_regular_leased_registration[$article->regular_leased_registration]}} <br>
                                        定期借地権賃料改定時期: {{$arr_regular_leased_season[$article->regular_leased_season]}}
                                        @if($article->regular_leased_season == 1)
                                            一定期間毎: {{$article->regular_leased_season_nen}}年毎
                                        @endif
                                        <br>
                                        定期借地権賃料改定額: {{$regular_leased_cost[$article->regular_leased_cost]}} <br>
                                        定期借地権譲渡転貸: 譲渡可否: {{$arr_regular_leased_transfer[$article->regular_leased_transfer]}},
                                        @if($article->regular_leased_transfer == 1)
                                            承諾要否・方法: {{$arr_regular_leased_transfer_method[$article->regular_leased_transfer_method]}},
                                            承諾料要否: {{$arr_regular_leased_transfer_necessity[$article->regular_leased_transfer_necessity]}},
                                            承諾者: {{$arr_regular_leased_transfer_consent[$article->regular_leased_transfer_consent]}}
                                        @endif
                                    @endif
                                @endif
                            @endif
                        </td>
                    </tr>
                </tbody>
            </table>
            <span>土地情報</span>
            <table class="p-regist__table">
                <tbody>
                    <tr>
                        <th colspan="2">用途地域</th>
                        <td>
                            <div class="mb10">
                                @if(!empty($article->use_area))
                                    {{$arr_use_area[$article->use_area]}}
                                @endif
                            </div>
                            <div>
                                @if(!empty($article->land_use))
                                一部&nbsp;{{$arr_use_area_district[$article->land_use]}}&nbsp;を含む
                                @endif
                                @if(!empty($article->land_use2))
                                一部&nbsp;{{$arr_use_area_district[$article->land_use2]}}&nbsp;を含む
                                @endif
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">都市計画</th>
                        <td>
                            @if($article->city_plan != null)
                                {{$arr_city_plan[$article->city_plan]}}
                                @if($article->city_plan == 2)
                                    <br>建築許可理由: {{$arr_city_plan_reason[$article->city_plan_reason]}}
                                @endif
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">土地備考(社内用)</th>
                        <td>
                            @include('admin.objects.components.textarea', ['name' => 'land_note', 'class' => 'ta500', 'placeholder' => '土地備考'])
                        </td>
                    </tr>
                </tbody>
            </table>
            <span>マンション建物情報</span>
            <table class="p-regist__table">
                <tbody>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>専有面積</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.components.radio', ['name' => 'total_area', 'radio' => $mansion_unit1, 'default' => 0])
                            @include('admin.objects.components.input', ['name' => 'total_area_val', 'class' => 'half-size', 'placeholder' => '000.00'])&nbsp;m&sup2;
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>間取り</div>
                                 <!--<span class="require">必須</span>-->
                             </div>
                        </th>
                        <td>
                        @include('admin.objects.components.selectbox', ['name' => 'floor_plan', 'options' => $floor_plan])
                        @include('admin.objects.components.selectbox', ['name' => 'floor_plan_type', 'options' => $floor_type, 'title' => '間取りタイプ'])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>バルコニー面積</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.umu-radio', ['name' => 'balcony_area', 'default' => 0])
                            <div id="balcony_area_area">
                                @include('admin.objects.components.selectbox', ['name' => 'balcony_direction', 'options' => $land_direction, 'selected' => $article->balcony_direction])
                                @include('admin.objects.components.input', ['name' => 'balcony_area_val', 'class' => 'half-size', 'placeholder' => '000.00'])&nbsp;m&sup2;
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>ルーフバルコニー面積</div>
                                 <span class="require_applicable">該当必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.umu-radio', ['name' => 'loof_balcony_area', 'default' => 0])
                            <div id="loof_balcony_area_area">
                                @include('admin.objects.components.input', ['name' => 'loof_balcony_area_val', 'class' => 'half-size', 'placeholder' => '000.00'])&nbsp;m&sup2;
                                @include('admin.objects.components.input', ['name' => 'loof_balcony_area_cost', 'class' => 'half-size'])円
                                @include('admin.objects.components.radio', ['name' => 'loof_balcony_area_unit', 'radio' => $mansion_cost_unit, 'default' => 0])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>専用庭面積</div>
                                 <span class="require_applicable">該当必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.umu-radio', ['name' => 'garden_area', 'default' => 0])
                            <div id="garden_area_area">
                                @include('admin.objects.components.input', ['name' => 'garden_area_val', 'class' => 'half-size', 'placeholder' => '000.00'])&nbsp;m&sup2;
                                @include('admin.objects.components.input', ['name' => 'garden_area_cost', 'class' => 'half-size'])円
                                @include('admin.objects.components.radio', ['name' => 'garden_area_unit', 'radio' => $mansion_cost_unit, 'default' => 0])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>テラス面積</div>
                                 <span class="require_applicable">該当必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.umu-radio', ['name' => 'terrace_area', 'default' => 0])
                            <div id="terrace_area_area">
                                <!--@include('admin.objects.components.selectbox', ['name' => 'terrace_direction', 'options' => $land_direction])-->
                                @include('admin.objects.components.input', ['name' => 'terrace_area_val', 'class' => 'half-size', 'placeholder' => '000.00'])&nbsp;m&sup2;
                                @include('admin.objects.components.input', ['name' => 'terrace_area_cost', 'class' => 'half-size'])円
                                @include('admin.objects.components.radio', ['name' => 'terrace_area_unit', 'radio' => $mansion_cost_unit, 'default' => 0])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">現況</th>
                        <td>
                        @include('admin.objects.components.selectbox', ['name' => 'current_status', 'options' => $genkyou, 'default' => 1, 'title' => '現況'])
                        <div id="current_status_area" class="mt5">
                                <div class="mb5">賃料&nbsp;@include('admin.objects.components.input', ['name' => 'current_status_val', 'class' => 'w100 half-size'])円 / 月</div>
                                <div class="">利回り&nbsp;@include('admin.objects.components.input', ['name' => 'current_status_rate', 'class' => 'w100 half-size'])％</div>
                        </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>引渡し</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.components.radio', ['name' => 'move_in', 'radio' => $move_in, 'default' => 0])
                            <div id="move_in_year" class="mb10">
                                @include('admin.objects.components.selectbox', ['name' => 'move_in_year', 'options' => Config::get('const.YEAR'), 'title' => '引渡し（年）'])年
                                @include('admin.objects.components.selectbox', ['name' => 'move_in_month', 'options' => Config::get('const.MONTH'), 'title' => '引渡し（月）'])月
                            </div>
                            <div id="move_in_month">
                                @include('admin.objects.components.selectbox', ['name' => 'move_in_contract_month', 'options' => Config::get('const.MONTH')])ヶ月
                            </div>
                        </td>
                    </tr>
                    <tr>
                      <th colspan="2">
                         <div class="d-flex justify-content-between">
                               <div>引渡し条件</div>
                           </div>
                      </th>
                      <td>
                        @include('admin.objects.components.input', ['name' => 'move_in_conditions', 'class' => 'w300', 'value' => $article->move_in_conditions])
                      </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>階数</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            <div class="d-flex">
                                <div class="mr-3">
                                    @include('admin.objects.components.input', ['name' => 'whereabouts', 'class' => 'w100 half-size'])階部分/
                                    @if($article->underground)
                                    地上{{$article->floor}}階&nbsp;地下{{$article->underground}}階建
                                    @else
                                    地上{{$article->floor}}階建
                                    @endif
                                </div>
                                <div class="ml-3">
                                    @include('admin.objects.components.checkbox', ['name' => 'maisonette', 'checkbox' => $maisonette])
                                    @include('admin.objects.components.input', ['name' => 'maisonette_from', 'class' => 'w100 half-size'])階〜
                                    @include('admin.objects.components.input', ['name' => 'maisonette_to', 'class' => 'w100 half-size'])階部分
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                      <th colspan="2">
                        <div class="d-flex justify-content-between">
                          <div>リフォーム&nbsp;内装</div><span class="search_target">検索</span>
                        </div>
                      </th>
                        <td>
                            <div>
                            @include('admin.objects.components.radio', ['name' => 'interior', 'radio' => $reform, 'default' => 1])
                            </div>
                            <div id="interior_detail">
                                内装年月
                                @include('admin.objects.components.selectbox', ['name' => 'interior_year', 'options' => Config::get('const.REFORM_YEAR')])年
                                @include('admin.objects.components.selectbox', ['name' => 'interior_month', 'options' => Config::get('const.MONTH')])月
                                <br>
                                内装箇所
                                @include('admin.objects.components.checkbox', ['name' => 'interior_place', 'checkbox' => $interior])
                                @include('admin.objects.components.input', ['name' => 'interior_text', 'class' => 'w100'])
                            </div>
                        </td>
                    </tr>




                    <tr>
                        <th colspan="2">総戸数</th>
                        <td>
                            {{$article->total_unit}}戸
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">築年月</th>
                        <td>
                            {{$article->age_year}}年{{$article->age_month}}月
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">構造</th>
                        <td>
                            <div>
                                @if(!empty($article->construction))
                                {{$arr_construction[$article->construction]}}
                                @endif
                            </div>
                            <div>
                                @if(!empty($article->construction_sub))
                                一部{{$arr_construction_sub[$article->construction_sub]}}を含む
                                @endif
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">敷地面積</th>
                        <td>
                            {{$article->land_area_val}}m&sup2;
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">分譲会社</th>
                        <td>
                            {{$article->sales_company}}
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">施工会社</th>
                        <td>
                            {{$article->construction_company}}
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">管理会社</th>
                        <td>
                            {{$article->management_company}}
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">管理形態</th>
                        <td>
                            <div style="display: flex">
                                @if(!empty($article->management_form))
                                    <p class="m-0">{{$arr_management_form[$article->management_form]}}</p>
                                @endif
                                <p class="m-0 pl-2" style="color: #dc143c; font-size: small">※2024/4/15以降、SUUMO項目改訂に伴い「自主管理」の選択肢が使用できなくなります。<br>「自主管理」を選択している場合は、SUUMOへ「自主管理(勤務形態未定)」として反映されます。</p>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">共用部</th>
                        <td>
                            {{$article->shared_text??'-'}}
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">ペット飼育</th>
                        <td>
                        @if(!empty($article->pet))
                            {{$arr_pet[$article->pet]}}
                        @endif

                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">建物備考(社内用)</th>
                        <td>
                            @include('admin.objects.components.textarea', ['name' => 'build_note', 'class' => 'ta500', 'placeholder' => '建物備考'])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">法令上の制限</th>
                        <td>
                            {{str_replace('<br>',', ',$article->getLowRestrictionName())}}
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">その他制限事項</th>
                        <td>
                            {{str_replace('<br>',', ',$article->getOtherRestriction())}}
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">コメント</th>
                        <td>{{$article->comment}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    @include('admin.objects.components.regist-tab', ['active' => 'investment'])
    <div>
        @include('admin.objects.components.regist-band', ['title' => '４.投資・事業用'])
        <div class="p-regist">
            <table class="p-regist__table">
                <tbody>
                    <tr>
                        <th colspan="2">区分<span class="require">必須</span></th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'classfication', 'radio' => $classification, 'default' => 1])
                            </div>
                        </td>
                    </tr>
                  </tbody>
                <tbody id="classfication_area_default">
                <tr>
                    <th colspan="2">売買区分</th>
                    <td>
                        <div>
                            @include('admin.objects.components.radio', ['name' => 'trading_classfication', 'radio' => $buy_class, 'default' => 1])
                        </div>
                    </td>
                </tr>
                </tbody>
                  <tbody  id="classfication_area">
                    <tr>
                        <th colspan="2">事業用用途</th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'use_method', 'radio' => $use_method, 'default' => 1])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">事業用引渡し状態</th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'business_status', 'radio' => $use_status, 'default' => 1])
                            </div>
                        </td>
                    </tr>
                  </tbody>
                  <tbody  id="classfication_in_area">
                    <tr>
                        <th colspan="2">投資用現況</th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'investment_status', 'radio' => $investment, 'default' => 1])
                            </div>
                            <div>
                                <div>投資用収入実績@include('admin.objects.components.input', ['name' => 'vendor_name'])円　／   @include('admin.objects.components.radio', ['name' => 'investment_performance_unit', 'radio' => $investment_unit, 'default' => 1])</div>
                                <div>投資用年利回り@include('admin.objects.components.input', ['name' => 'vendor_name'])％</div>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    @include('admin.objects.components.regist-tab', ['active' => 'advertisement'])
    <div>
        @include('admin.objects.components.regist-band', ['title' => '５.取引情報・広告'])
        @include('admin.objects.projects.regist-vendor')
    </div>
    @include('admin.objects.components.regist-tab', ['active' => 'event'])
    <div>
        @include('admin.objects.components.regist-band', ['title' => '６.イベント'])
        <div class="p-regist">
            <table class="p-regist__table">
                <tbody>
                @include('admin.objects.projects.event')
                </tbody>
            </table>
            <div class="regist__div d-flex justify-content-center">
                <div class="">
                    @include('admin.objects.components.btn', ['class' => 'c-base-tab__image saved_to_image', 'title' => '保存して画像登録画面へ', 'type' => 'submit'])
                </div>
                <div class="">
                    @include('admin.objects.components.btn', ['class' => 'c-base-tab__save', 'title' => '登録・保存'])
                </div>
            </div>
        </div>
    </div>
</form>



{{-- 分譲地検索モーダルウィンドウ --}}


@include('admin.objects.projects.modal-vendor', ['no' => 9])

@include('admin.objects.projects.address-script')

@endsection
