<?php
    $is_opended = isset($params['is_opended']) && $params['is_opended'] == '1';

    function outputSelected($val) {
        if($val == 2) {
            return '<span class="round-checked"></span>';
        }
        return '<span class="round-uncheck"></span>';
    }

    function getMannerName($manner, $vendor) {
        foreach ($manner as $m) {
            if($m['code'] == $vendor['manner']) {
                    return $m['name'];
            }
        }
    }

?>




<?php $__env->startSection('print-content'); ?>

    <style>
        li.p-detail-main-sheet__left-image:first-child {
            width: calc(100% - 190px);
        }

        li.p-detail-main-sheet__left-image {
            display: inline-block;
            /*padding: 8px !important;*/
        }


        .justify-content-between li {
            display: inline-block;
        }

        .p-detail-main-sheet__left-image {
            width: 98%;
        }
    </style>

    <style type="text/css" media="print">
        @page  {
            size: landscape;   /* auto is the initial value */
            margin: 5mm 0mm;  /* this affects the margin in the printer settings */
        }
    </style>
    <?php echo $__env->make('business.objects.projects.for-sale-print-button', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <div class="p-print-box">
        <div class="head-print">
            <div class="print_header" style="margin-bottom: 9mm">
                <p class="f-left"><b>
                        <?php if(strstr($_SERVER["REQUEST_URI"],'close')): ?>
                            成約物件
                        <?php else: ?>
                            売出物件
                        <?php endif; ?>
                    </b></p>
                <?php
                    if(isset($set_count)){
                        $count = $set_count;
                    }else{
                        $count = 1;
                        if(isset($items)){
                            $count = $items->count();
                        }
                    } ?>
                <?php if(!empty($hide_items)): ?>
                    <p class="f-right"><b>該当件数：<?php echo e($count - count($items->whereIn('building_id', $hide_items))); ?></b></p>
                <?php else: ?>
                    <p class="f-right"><b>該当件数：<?php echo e($count); ?></b></p>
                <?php endif; ?>
                <div class="clear"></div>
                <hr>
            </div>
        </div>
        <div class="p-print-custom" id="print-custom">
            <div class="p-detail-main-sheet">
                <?php $__currentLoopData = $article_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="sheet">
                        <?php echo $__env->make('business.objects.projects.for-sale-print-main-sheet-detail', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>





































































































































































































































































































































































































<?php echo $__env->make('business.layouts.print-layout', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>