@extends('business.layouts.base')

{{-- header --}}
@section('contents-header')
    @include('business.objects.projects.detail-header', ['number' => '1', 'totalCount' => '10', 'noSetPrint' => true])
@endsection

@php
    // tab
    $tabs = [];

    $tab = new stdClass();
    $tab->title = '自社物件シート';
    $tab->id = 'nav-property-tab';
    $tab->href = 'nav-property';
    $tab->active = 'active';
    array_push($tabs, $tab);

    $tab = new stdClass();
    $tab->title = '売出・成約';
    $tab->id = 'nav-summary-tab';
    $tab->href = 'nav-summary';
    $tab->active = '';
    array_push($tabs, $tab);

@endphp

@section('contents')
    <div class="mt-4">

        {{-- tab contents --}}
        @include('business.objects.projects.detail-tab', ['tabs' => $tabs])
        <div class="tab-content">
            <div class="tab-pane bg-white active" id="nav-property" role="tabpanel" aria-labelledby="nav-property-tab">
                @include('business.objects.projects.detail-main-lot-sheet',['pref' => $pref, 'city' =>$city,'town'=>$town])
            </div>
            <div class="tab-pane bg-white" id="nav-summary" role="tabpanel" aria-labelledby="nav-summary-tab">
                @include('business.objects.projects.detail-soldout-lot')
            </div>
        </div>
        @include('business.objects.projects.form-to-other', ['action' => '/business/lot/parentDetail/'.$item->building_id, 'id' => 'multiPrintForm', 'params' => $params, 'print_action' => true])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-print'), 'id' => 'singlePrintForm', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setprint-vendor'), 'id' => 'multiPrintFormVendor', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-print-vendor'), 'id' => 'singlePrintFormVendor', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setprint-set1'), 'id' => 'multiPrintFormSet1', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-print-set1'), 'id' => 'singlePrintFormSet1', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setprint-set2'), 'id' => 'multiPrintFormSet2', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-print-set2'), 'id' => 'singlePrintFormSet2', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setprint-set3'), 'id' => 'multiPrintFormSet3', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-print-set3'), 'id' => 'singlePrintFormSet3', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setpdf'), 'id' => 'multiPdfForm', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-pdf'), 'id' => 'singlePdfForm', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setpdf-vendor'), 'id' => 'multiPdfFormVendor', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-pdf-vendor'), 'id' => 'singlePdfFormVendor', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setpdf-set1'), 'id' => 'multiPdfFormSet1', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-pdf-set1'), 'id' => 'singlePdfFormSet1', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setpdf-set2'), 'id' => 'multiPdfFormSet2', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-pdf-set2'), 'id' => 'singlePdfFormSet2', 'params' => $params_single])

        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-setpdf-set3'), 'id' => 'multiPdfFormSet3', 'params' => $params])
        @include('business.objects.projects.form-to-other', ['action' => route('business-for-sale-pdf-set3'), 'id' => 'singlePdfFormSet3', 'params' => $params_single])
        <form action="/business/lot" method="post" id="return_form">
            @foreach($params as $key => $value)
                @if(!is_array($value))
                    <input type="hidden" name="{{$key}}" value="{{$value}}">
                @else
                    @foreach($value as $v)
                        <input type="hidden" name="{{$key}}[]" value="{{$v}}">
                    @endforeach
                @endif
            @endforeach
            @csrf
        </form>
    </div>
@endsection
