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

@php
//// 1 基本情報

//// 2 価格

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


//// 3 物件概要

// 土地面積
$land_area = [
    ['code' => 1, 'name' => '登記'],
    ['code' => 2, 'name' => '実測'],
    ['code' => 0, 'name' => '未選択'], 
];

// 土地条件
$land_condition_unit = [['code' => 2, 'name' => 'm&sup2;'], ['code' => 3, 'name' => '％'], ['code' => 0, 'name' => '未選択'],];
$land_condition1 = [['code' => 1, 'name' => 'うち傾斜部分'],];
$land_condition2 = [['code' => 2, 'name' => 'うち路地状部分'],];
$land_condition3 = [['code' => 3, 'name' => 'うち高圧線下'],];

// 条件外し
$land_condition_not = [
    ['code' => 1, 'name' => '可'], 
    ['code' => 2, 'name' => '不可'], 
];

// 建築不可
$land_not = [
    ['code' => 1, 'name' => '再建築不可'], 
];

// 状況
$land_status = [
    ['code' => 1, 'name' => '更地'],
    ['code' => 2, 'name' => '古家有'],
    ['code' => 3, 'name' => '未造成'],
    ['code' => 0, 'name' => '未選択'], 
];

// 引渡し
$land_delivery = [
    ['code' => 1, 'name' => '即'],
    ['code' => 2, 'name' => '相談'],
    ['code' => 3, 'name' => '指定有'],
];

$land_delivery_time = [
    ['code' => 1, 'name' => '初旬'],
    ['code' => 2, 'name' => '上旬'],
    ['code' => 3, 'name' => '中旬'],
    ['code' => 4, 'name' => '下旬'],
    ['code' => 5, 'name' => '末'],
    ['code' => 0, 'name' => '未選択'],
];

// 建築条件
$land_condition = [
    ['code' => 0, 'name' => '条件なし'],
    ['code' => 1, 'name' => '建築条件付き'],
];

// 地目
$ground = [
    ['code' => 1, 'name' => '宅地'],
    ['code' => 2, 'name' => '田'],
    ['code' => 3, 'name' => '畑'],
    ['code' => 4, 'name' => '山林'],
    ['code' => 5, 'name' => '雑種地'],
    ['code' => 6, 'name' => '原野'],
    ['code' => 7, 'name' => 'その他'],
];

// 地役権
$easement = [
    ['code' => 1, 'name' => '無'],
    ['code' => 2, 'name' => '地役権'],
    ['code' => 3, 'name' => '通行地役権'],
    ['code' => 4, 'name' => '引水地役権'],
    ['code' => 5, 'name' => '眺望地役権'],
    ['code' => 6, 'name' => '通路賃借権'],
    ['code' => 0, 'name' => '未選択'],
];

// 上水道
$water_supply = [
    ['code' => 1, 'name' => '公営水道'],
    ['code' => 2, 'name' => '私設水道'],
    ['code' => 3, 'name' => '井戸'],
    ['code' => 0, 'name' => '未選択'],
];

// 下水道
$sewerage = [
    ['code' => 1, 'name' => '本下水'],
    ['code' => 2, 'name' => '集中浄化槽'],
    ['code' => 3, 'name' => '個別浄化槽'],
    ['code' => 0, 'name' => '未選択'],
];

// ガス・オール電化
$gas = [
    ['code' => 1, 'name' => '都市ガス'],
    ['code' => 2, 'name' => '集中ＬＰＧ'],
    ['code' => 3, 'name' => '個別ＬＰＧ'],
    ['code' => 4, 'name' => 'オール電化'],
    ['code' => 0, 'name' => '未選択'],

];

// 車庫
$garage = [
    ['code' => 1, 'name' => '掘込車庫'],
    ['code' => 0, 'name' => '未選択'],
];

// セットパック
$set = [
    ['code' => 1, 'name' => '不要'],
    ['code' => 2, 'name' => '要'],
    ['code' => 3, 'name' => '済'],
];


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

// 事業用用途
$use_method = [
    ['code' => 1, 'name' => 'マンション'],
    ['code' => 2, 'name' => 'アパート'],
    ['code' => 3, 'name' => 'ビル'],
    ['code' => 4, 'name' => '店舗'],
    ['code' => 5, 'name' => '事務所'],
    ['code' => 6, 'name' => '寮・社宅'],
    ['code' => 7, 'name' => '工場'],
    ['code' => 8, 'name' => '倉庫'],
    ['code' => 9, 'name' => 'その他'],
];

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

$ad_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>
     @foreach($errors->all() as $message)
       <li>{{ $message }}</li>
     @endforeach
   </ul>
 </div>
@endif
<form method="POST" action="{{ route('copyLand') }}?copy={{$copy_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>
                            <div class="d-flex">
                                @include('admin.objects.components.hidden', ['name' => 'company_id', 'value' => $company_id])
                                <span class="lh55" name="disp_sale_no">@if(isset($article->sale_no)) {{$article->sale_no}} @else 未設定 @endif</span>
                                @include('admin.objects.components.hidden', ['name' => 'sale_no', 'value' => $article->sale_no])
                                @include('admin.objects.components.modal-btn', ['title' => '分譲地検索', 'class'=> 'btn_search', 'data' => 1])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">分譲地名</th>
                        <td>
                            <span>@if(isset($article->sale_name)) {{$article->sale_name}} @else 未設定 @endif</span>
                            @include('admin.objects.components.hidden', ['name' => 'name_bunjyou', 'value' => $article->sale_name])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">物件番号</th>
                        <td>
                            <span>{{$article->building_id}}</span>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>物件種別</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            @if(false)
                            @include('admin.objects.components.hidden', ['name' => 'property', 'value' => 1])
                            @endif
                            @include('admin.objects.components.radio', ['name' => 'property', 'radio' => $property, 'default' => 1, 'checked' => $article->property])
                        </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' => 'w-50', 'count' => 30, 'placeholder' => '物件名を３０文字以内で入力', 'value' => $article->article_name])
                            @include('admin.objects.components.input', ['name' => 'name_gouchi', 'value' => $article->name_gouchi])号地
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">物件名（ポータル用）</th>
                        <td>
                            @include('admin.objects.components.input', ['name' => 'name_portal', 'class' => 'w-50', 'count' => 30, 'placeholder' => '物件名を３０文字以内で入力', 'value' => $article->name_portal])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">収益物件</th>
                        <td>
                            @include('admin.objects.components.checkbox', ['name' => 'revenue', 'checkbox' => $revenue, 'checked' => $article->revenue])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">ステータス</th>
                        <td>
                            @include('admin.objects.components.selectbox', ['name' => 'status', 'options' => $statuses, 'selected' => $article->status])
                        </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, 'selected' => $article->shop, '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.form-address-edit')
                        </td>
                    </tr>
                    @include('admin.objects.projects.latlng')
                    <tr>
                        <th rowspan="4">交通</th>
                        <th>交通</th>
                        <td>
                            @include('admin.objects.components.modal-btn', ['title' => '路線をまとめて検索', 'class'=> 'btn_search', 'data' => 3])
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <div class="d-flex justify-content-between">
                                 <div>主要交通</div>
                                 <span class="require">必須</span>
                            </div>
                        </th>
                        <td>
                            @include('admin.objects.projects.search-station-edit', ['data' => 4, 'name' => 'main_traffic'])
                        </td>
                    </tr>
                    <tr>
                        <th>補助交通１</th>
                        <td>
                            @include('admin.objects.projects.search-station-edit', ['data' => 5, 'name' => 'sub_traffic1'])
                        </td>
                    </tr>
                    <tr>
                        <th>補助交通２</th>
                        <td>
                            @include('admin.objects.projects.search-station-edit', ['data' => 6, 'name' => 'sub_traffic2'])
                        </td>
                    </tr>
                    <tr>
                        <th rowspan="2">学校区</th>
                        <th>小学校</th>
                        <td>
                            @include('admin.objects.projects.search-school-edit', ['title' => '小学校' ,'data' => 7, 'name' => 'primary_school'])
                        </td>
                    </tr>
                    <tr>
                        <th>中学校</th>
                        <td>
                            @include('admin.objects.projects.search-school-edit', ['title' => '中学校' ,'data' => 8, 'name' => 'secondary_school'])
                        </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">レインズ番号</th>
                        <td>
                            <p>{{$article->rains_id}}</p>
                        </td>
                    </tr>
                    @include('admin.objects.projects.original-edit')
                    <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>@if(isset($article->disp_create)){{$article->disp_create}}@endif</td>
                    </tr>
                    <tr>
                        <th colspan="2">取引態様</th>
                        <td>
                        @include('admin.objects.components.selectbox', ['name' => 'company_manner', 'options' => $manner, 'title' => '取引態様', 'selected' => $article->company_manner])
                        </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', 'value' => $article->price])万円&nbsp;
                            @include('admin.objects.components.selectbox', ['name' => 'tax', 'options' => $tax, 'selected' => $article->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_applicable">該当必須</span>
                             </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'council', 'radio' => $council_cost, 'checked' => $article->council, 'default' => 0])
                            </div>
                            <div id="council_presence_area">
                                @include('admin.objects.projects.umu-money-radio', ['name' => 'council_presence', 'default' => 0, 'checked' => $article->council_presence?? 0])
                            </div>
                            <div id="council_cost_area">
                                @include('admin.objects.components.input', ['name' => 'council_cost', 'value' => $article->council_cost])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'council_cost_unit', 'radio' => $cost_unit, 'checked' => $article->council_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, 'checked' => $article->spring, 'default' => 0])
                            </div>
                            <div id="spring_area">
                                @include('admin.objects.projects.umu-money-radio', ['name' => 'spring_presence', 'default' => 0, 'checked' => $article->spring_presence?? 0])
                            </div>
                            <div id="spring_cost_area">
                                @include('admin.objects.components.input', ['name' => 'spring_cost', 'value' => $article->spring_cost])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'spring_cost_unit', 'radio' => $cost_unit, 'checked' => $article->spring_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', 'value' => $article->another_cost_name1])
                            </div>
                            <div>
                                金額
                                @include('admin.objects.components.input', ['name' => 'another_cost1', 'value' => $article->another_cost1])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'another_cost_unit1', 'radio' => $cost_unit, 'checked' => $article->another_cost_unit1, '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', 'value' => $article->another_cost_name2])
                            </div>
                            <div>
                                金額
                                @include('admin.objects.components.input', ['name' => 'another_cost2', 'value' => $article->another_cost2])円&#047;
                                @include('admin.objects.components.radio', ['name' => 'another_cost_unit2', 'radio' => $cost_unit, 'checked' => $article->another_cost_unit1, 'default' => 0])
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </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>
                @include('admin.objects.projects.land-right')
                </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' => 'land_area', 'radio' => $land_area, 'checked' => $article->land_area])
                            @include('admin.objects.components.input', ['name' => 'land_area_val', 'placeholder' => '000.00', 'value' => $article->land_area_val])&nbsp;m&sup2;<span>※私道面積は含めない</span>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                           <div class="d-flex justify-content-between">
                                 <div>土地条件</div>
                                 <span class="require_applicable">該当必須</span>
                             </div>
                        </th>
                        <td>
                            <span>以下の項目があれば記入してください。</span>
                            <div>
                                @include('admin.objects.components.checkbox', ['name' => 'land_condition1', 'checkbox' => $land_condition1, 'checked' => $article->land_condition1])
                                <span>※傾斜地部分が３割以上の場合は面積のm&sup2;か％表記が必須</span>
                                <div id="land_condition1_area">
                                    @include('admin.objects.components.input', ['name' => 'land_condition_area1'])
                                    @include('admin.objects.components.radio', ['name' => 'land_condition_unit1', 'radio' => $land_condition_unit])
                                </div>
                            </div>
                            <div>
                                @include('admin.objects.components.checkbox', ['name' => 'land_condition2', 'checkbox' => $land_condition2])
                                <span>※路地状部分が３割以上の場合は面積のm&sup2;か％表記が必須</span>
                                <div id="land_condition2_area">
                                    @include('admin.objects.components.input', ['name' => 'land_condition_area2'])
                                    @include('admin.objects.components.radio', ['name' => 'land_condition_unit2', 'radio' => $land_condition_unit])
                                </div>
                            </div>
                            <div>
                                @include('admin.objects.components.checkbox', ['name' => 'land_condition3', 'checkbox' => $land_condition3])
                                <span>※高圧線下があればm&sup2;表記が必須</span>
                                <div id="land_condition3_area">
                                    @include('admin.objects.components.input', ['name' => 'land_condition_area3'])m&sup2;
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">再建築不可</th>
                        <td>
                            @include('admin.objects.components.checkbox', ['name' => 'land_not', 'checkbox' => $land_not])
                        </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.components.radio', ['name' => 'current_status', 'radio' => $land_status, 'default' => 0, 'checked' => $article->current_status])
                            <div id="land_status_area">
                                造成工事完了予定年月&nbsp;
                                @include('admin.objects.components.selectbox', ['name' => 'comp_year', 'options' => Config::get('const.YEAR'), 'selected' => $article->comp_year])年
                                @include('admin.objects.components.selectbox', ['name' => 'comp_month', 'options' => Config::get('const.MONTH'), 'selected' => $article->comp_month])月
                            </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' => 'land_delivery', 'radio' => $land_delivery, 'default' => 1, 'checked' => $article->land_delivery])
                            <div id="land_delivery_area">
                                @include('admin.objects.components.selectbox', ['name' => 'delivery_year', 'options' => Config::get('const.YEAR'), 'selected' => $article->delivery_year])年
                                @include('admin.objects.components.selectbox', ['name' => 'delivery_month', 'options' => Config::get('const.MONTH'), 'selected' => $article->delivery_month])月
                                @include('admin.objects.components.radio', ['name' => 'land_delivery_time', 'radio' => $land_delivery_time, 'checked' => $article->land_delivery_time, 'default' => 0])
                            </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' => 'land_condition', 'radio' => $land_condition, 'checked' => $article->land_condition, 'default' => 0])
                            <div id="land_condition_area">
                                <div>
                                    【条件外し】
                                    @include('admin.objects.components.radio', ['name' => 'land_condition_not', 'radio' => $land_condition_not, 'checked' => $article->land_condition_not, 'default' => 1])                                    
                                </div>
                                <div>
                                    <div class="d-flex">
                                        <div>【建物プラン】</div>
                                        <div>
                                            <div class="mb10">建物価格&nbsp;@include('admin.objects.components.input', ['name' => 'building_plan_place', 'placeholder' => '0,000', 'class' => 'w100', 'value' => $article->building_plan_place])万円</div>
                                            <div>建物面積&nbsp;@include('admin.objects.components.input', ['name' => 'building_plan_area', 'placeholder' => '000.00', 'class' => 'w100', 'value' => $article->building_plan_area])m&sup2;</div>
                                        </div>
                                    </div>
                                </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' => 'ground', 'radio' => $ground, 'checked' => $article->ground, 'default' => 1])
                        </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.components.input', ['name' => 'building_rate', 'class' => 'w100', 'value' => $article->building_rate])％
                            <span class="ml10">※「都市計画区域外」以外は必須</span>
                        </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.components.input', ['name' => 'volume_rate', 'class' => 'w100', 'value' => $article->volume_rate])％
                            <span class="ml10">※「都市計画区域外」以外は必須</span>
                        </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-share-radio', ['name' => 'road_burden', 'default' => 0, 'checked' => $article->road_burden ?? 0])
                            <div id="road_burden_area1" class="mb10">
                                私道面積&nbsp;@include('admin.objects.components.input', ['name' => 'road_burden_area', 'class' => 'w100', 'placeholder' => '000.00', 'value' => $article->road_burden_area])m&sup2;
                            </div>
                            <div id="road_burden_area2">
                                私道持分比率&nbsp;持分@include('admin.objects.components.input', ['name' => 'road_numerator', 'class' => 'w50', 'placeholder' => '0.0', 'value' => $article->road_numerator])/全体@include('admin.objects.components.input', ['name' => 'road_denominator', 'class' => 'w50', 'placeholder' => '0.0', 'value' => $article->road_denominator])
                            </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.components.radio', ['name' => 'easement', 'radio' => $easement, 'checked' => $article->easement, 'default' => 1])
                            <div id="easement_area">
                                @include('admin.objects.components.input', ['name' => 'easement_area', 'value' => $article->easement_area])m&sup2;
                            </div>
                        </td>
                    </tr>
                    @include('admin.objects.projects.set-load-edit')
                    <tr>
                        <th colspan="2">上水道</th>
                        <td>
                            @include('admin.objects.components.radio', ['name' => 'water_supply', 'radio' => $water_supply, 'default' => 0, 'checked' => $article->water_supply])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">下水道</th>
                        <td>
                            @include('admin.objects.components.radio', ['name' => 'sewerage', 'radio' => $sewerage, 'default' => 0, 'checked' => $article->sewerage])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">ガス・オール電化</th>
                        <td>
                            @include('admin.objects.components.radio', ['name' => 'gas', 'radio' => $gas, 'default' => 0, 'checked' => $article->gas])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">車庫</th>
                        <td>
                            @include('admin.objects.components.radio', ['name' => 'garage', 'radio' => $garage, 'default' => 0, 'checked' => $article->garage??0])
                        </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.components.radio', ['name' => 'set', 'radio' => $set, 'default' => 1, 'checked' => $article->set??0])
                            <div id="set_area">
                                面積&nbsp;@include('admin.objects.components.input', ['name' => 'set_area', 'value' => $article->set_area])m&sup2;
                                <span>※面積10％以上の場合は表記必須です。</span>
                            </div>
                        </td>
                    </tr>
                    @include('admin.objects.projects.set-use-area')
                    <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' => 'city_plan', 'options' => $city_plan, 'selected' => $article->city_plan])
                            <div id="city_plan_area">
                                建築許可理由
                                @include('admin.objects.components.selectbox', ['name' => 'city_plan_reason', 'options' => $city_plan_reason, 'selected' => $article->city_plan_reason])
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            総区画数
                        </th>
                        <td>
                        @include('admin.objects.components.input', ['name' => 'section', 'class' => 'w50', 'value' => $article->section])区画
                        </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_applicable">該当必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.components.checkbox-law', ['name' => 'law_restriction', 'checkbox' => $law, 'class' => 'checkbox_small'])
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2" rowspan="3">
                           <div class="d-flex justify-content-between">
                                 <div>その他制限事項</div>
                                 <span class="require_applicable">該当必須</span>
                             </div>
                        </th>
                        <td>
                            @include('admin.objects.components.checkbox', ['name' => 'other_restriction', 'checkbox' => $other, 'class' => 'checkbox_small'])
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @include('admin.objects.components.selectbox', ['name' => 'other_reason', 'options' => $other_reason])
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @include('admin.objects.components.textarea', ['name' => 'other_comment', 'class' => 'ta50 w-75', 'placeholder' => 'その他制限事項がある場合は１５０文字以内で入力してください', 'count' => 150])
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </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">
                           <div class="d-flex justify-content-between">
                                 <div>区分</div>
                                 <span class="require">必須</span>
                             </div>
                        </th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'classfication', 'radio' => $classification, 'default' => 1, 'checked' => $article->classfication])
                            </div>
                        </td>
                    </tr>
                    <tr id="classfication_area">
                        <th colspan="2">事業用用途</th>
                        <td>
                            <div>
                                @include('admin.objects.components.radio', ['name' => 'use_method', 'radio' => $use_method, 'default' => 1, 'checked' => $article->use_method])
                            </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.edit-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-lot', ['no' => 1])
@include('admin.objects.projects.modal-map', ['no' => 2])
@include('admin.objects.projects.modal-traffic-multi', ['no' => 3])
@include('admin.objects.projects.modal-traffic-single', ['no' => 4])
@include('admin.objects.projects.modal-traffic-single', ['no' => 5])
@include('admin.objects.projects.modal-traffic-single', ['no' => 6])
@include('admin.objects.projects.modal-vendor', ['no' => 9])
@include('admin.objects.projects.address-script')
@endsection

