<?php $__env->startSection('contents'); ?>
<style type="text/css" media="print">
    @page  {
        size: A4 landscape;
    }


 </style>
<style type="text/css">
.p-print {
  width: 251mm;
  height: 182mm;
  margin:18mm auto 0 auto;
  page-break-after: always;
    padding: 3px 0;
    margin: 0px auto;
    color: #000;
}
_::-webkit-full-page-media, _:future, :root .p-print {
  margin:0 auto;
}
.p-print:last-child{
   page-break-after: avoid;
}
.sheet {
    text-align:center;
    color: #7A7A7A;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border: 1px solid #7A7A7A;
    /*page-break-after: always;*/
}

.sheet img {
    width: 100%;
}
.head-print{
    width: 251mm;
    margin: auto;
    padding: 9mm 0 0 0;
    page-break-after: always;
    color: #000;
}
.f-left {
    float: left;
}
.f-right {
    float: right;
}
.print_header p {
    margin-bottom: 0 !important;
}
</style>
<div class="head-print">
    <div class="print_header">
        <p class="f-left"><b>
                <?php if(strstr($_SERVER["REQUEST_URI"],'close')): ?>
                    成約物件
                <?php else: ?>
                    売出物件
                <?php endif; ?>
            </b></p>
        <?php if(isset($set_count)): ?>
            <p class="f-right"><b>該当件数：1</b></p>
        <?php else: ?>
            <p class="f-right"><b>該当件数：<?php echo e($total - count($items->whereIn('building_id', $hide_items))); ?></b></p>
        <?php endif; ?>

        <div class="clear"></div>
        <hr>
    </div>
</div>
<?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<section class="p-print">
    <div class="sheet" style="padding-top: 10px">
<?php if(!empty($item->disp_sheet_file)): ?>
<img src="<?php echo e($item->disp_sheet_file); ?>" style="max-height: 794px; height: 100%;">
<?php else: ?>
<img src="<?php echo e(root('img/noimage2.jpg')); ?>" style="max-height: 794px; height: 100%;"/>
<?php endif; ?>
    </div>
</section>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<?php $__env->stopSection(); ?>

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