@foreach($print_list as $print)
    @if(!$loop->first)
    <hr style="page-break-after: always;">
    @endif
<div class="p-vendor-print">
    <p class="p-vendor-print__date">{{$today}}</p>
    <div class="d-flex justify-content-between">
        <div class="p-vendor-print__head-left">
            <div class="p-vendor-print__company">
                <p>★物件確認をお願いします★</p>
                <p class="p-vendor-print__company-name">{{$print['vendor']->name}}　御中</p>
                <p>
                  <span class="p-vendor-print__company-person">ご担当者 様</span>
                  <span class="p-vendor-print__company-tel">TEL： {{$print['vendor']->vendor_tel1}}</span>
                  <span class="p-vendor-print__company-fax">FAX： {{$print['vendor']->vendor_fax}}</span>
                </p>
            </div>
            <p class="p-vendor-print__message">
                拝啓　平素は格別のご厚誼を賜り厚く御礼申し上げます。<br>
                貴社お取扱いの下記物件につきまして、確認をお願いいたします。　敬具
            </p>
        </div>
        <div class="p-vendor-print__head-right">
            <div class="p-vendor-print__return">
                <p class="p-vendor-print__return-heading">返信先</p>
                <p class="p-vendor-print__return-fax">FAX: {{$shop->fax}}</p>
                <p class="">mic（株）三春情報センター{{$shop->name}}</p>
                <p>TEL: {{$shop->tel}}</p>
                <p>E-mail: {{$shop->email}}</p>
            </div>
        </div>
    </div>
    <div class="p-vendor-print__count">
        <p>物件確認件数<span>{{count($print['article'])}}</span>件</p>
    </div>
    <div class="p-vendor-print__list">
        <p class="p-vendor-print__list-description">【価格変更（税込・税抜）】【広告の可否】【物件の状況】をお知らせください。【本紙】を弊社返信先までFAXでご返信ください。</p>
@foreach($print['article'] as $article)
        @if($loop->iteration == 1 || $loop->iteration % 8 == 0)
        @php
        $loop_num = $loop->iteration;
        @endphp
        <table class="p-vendor-print__table" @if($loop->iteration % 8 == 0)style="page-break-before:always;"@endif>
            <tr>
                <th class="p-vendor-print__table-type">物件種別</th>
                <th class="p-vendor-print__table-name">物件名/住所</th>
                <th class="p-vendor-print__table-build">土地（m&sup2;）<br>建物（m&sup2;）</th>
                <th class="p-vendor-print__table-price">価格<br>（万円）</th>
                <th class="p-vendor-print__table-changed">価格変更</th>
                <th class="p-vendor-print__table-status">物件の状況</th>
                <th class="p-vendor-print__table-ad">チラシ</th>
                <th class="p-vendor-print__table-ad">情報誌</th>
                <th class="p-vendor-print__table-ad">自社HP</th>
                <th class="p-vendor-print__table-ad">ポータル</th>
                <th class="p-vendor-print__table-ad">現地看板</th>
            </tr>

            <tr>
                <td rowspan="2" class="p-vendor-print__table-type--example">凡例</td>
                <td class="">物件名</td>
                <td class="p-vendor-print__table-build">000.00</td>
                <td class="p-vendor-print__table-price">2,000</td>
                <td class="p-vendor-print__table-changed-price">1,800</td>
                <td rowspan="2" class="text-center">
                    <ul class="d-flex justify-content-center flex-wrap w175">
                        <li class="p-vendor-print__circle">販売中</li><li class="px-1">・</li><li>商談中</li><li class="px-1">・</li><li>契約予定</li><li class="px-1">・</li>
                        <li>契約済</li><li class="px-1">・</li><li>売りやめ</li><li class="px-1">・</li><li>保留</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li class="p-vendor-print__circle">可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li class="p-vendor-print__circle">可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li class="p-vendor-print__circle">可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li class="p-vendor-print__circle">可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li>可</li>
                        <li class="px-1">・</li>
                        <li class="p-vendor-print__circle">不可</li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td class="">住所</td>
                <td class="p-vendor-print__table-build">000.00</td>
                <td class="p-vendor-print__table-price-tax">（税抜）</td>
                <td class="p-vendor-print__table-tax-select">
                    <ul class="d-flex justify-content-center">
                        <li>税込</li>
                        <li class="px-1">・</li>
                        <li class="p-vendor-print__circle">税抜</li>
                    </ul>
                </td>
            </tr>
        @endif
            <tr class="p-vendor-print__border--example">
                <td rowspan="2" class="p-vendor-print__table-type">
                    {{$loop->iteration}}
                    @if($article->property == 1)
						土地	
                    @elseif($article->property == 2)
                        土地（借地権）
                    @elseif($article->property == 3)
                        土地（底地権）
                    @elseif($article->property == 4)
                        @if($article->property_sub == 1) 
                            新築
                        @else 
                            中古
                        @endif
                        戸建
                    @elseif($article->property == 5)
                        @if($article->property_sub == 1) 
                            新築
                        @else 
                            中古
                        @endif
                        テラスハウス
                    @elseif($article->property == 6)
                        @if($article->property_sub == 1) 
                            新築
                        @else 
                            中古
                        @endif
                        マンション
                    @elseif($article->property == 7)
                        @if($article->property_sub == 1) 
                            新築
                        @else 
                            中古
                        @endif
                        タウンハウス
                    @else
                        マンション(部屋)
					@endif	

                </td>
                <td class="">{{$article->name}}</td>
                <td class="p-vendor-print__table-build">{{$article->land_area_val??'-'}}</td>
                <td class="p-vendor-print__table-price">{{$article->price}}</td>
                <td class="p-vendor-print__table-changed-price"></td>
                <td rowspan="2" class="text-center">
                    <ul class="d-flex justify-content-center flex-wrap  w175">
                        <li>販売中</li><li class="px-1">・</li><li>商談中</li><li class="px-1">・</li><li>契約予定</li><li class="px-1">・</li>
                        <li>契約済</li><li class="px-1">・</li><li>売りやめ</li><li class="px-1">・</li><li>保留</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li>可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li>可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li>可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li>可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
                <td rowspan="2" class="px-1">
                    <ul class="d-flex justify-content-center p-vendor-print__table-choice">
                        <li>可</li>
                        <li class="px-1">・</li>
                        <li>不可</li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td class="">{{$article->pref_name}}{{$article->city_name}}{{$article->town_name}}</td>
                <td class="p-vendor-print__table-build">{{$article->total_area_val??'-'}}</td>
                <td class="p-vendor-print__table-price-tax">（@if($article->price_closing == 2)税抜@else税込@endif）</td>
                <td class="p-vendor-print__table-tax-select">
                    <ul class="d-flex justify-content-center">
                        <li>税込</li>
                        <li class="px-1">・</li>
                        <li>税抜</li>
                    </ul>
                </td>
            </tr>
    @if($loop->iteration == $loop_num+7 || $loop->last)
        </table>
    @endif
@endforeach
        <ul class="p-vendor-print__attention my-3">
            <li class="p-vendor-print__attention-item">上記項目の【当社HP】は当社のホームページのみ表示されます。</li>
            <li class="p-vendor-print__attention-item">この中には貴社から直前に資料を頂いた物件が含まれていることがあります。</li>
            <li class="p-vendor-print__attention-item">他に物件をお持ちでしたら資料をお送りください。</li>
        </ul>
    </div>
</div>
@endforeach