 <?php $__currentLoopData = $renters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $renter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php
           if(!empty($renter->birthday))
   {
   $birthday = null;
        try {
            $birthday = \Carbon\Carbon::createFromFormat('Y-m-d',$renter->birthday);
        } catch (Exception $exception)
        {
            $birthday = \Carbon\Carbon::createFromFormat('d/m/Y',$renter->birthday);
        }
   }
           ?> <?php $renterDt = \App\Models\Renter::where('user_id', $renter->id)->first(); ?> <?php if(!empty($renter->contract_id)): ?> <p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><strong><span style="font-size:13.0pt"><?php echo e($loop->index + 1); ?>,</span></strong><strong><span style="font-size:13.0pt">Đại diện &Ocirc;ng (b&agrave;): <?php echo e($renter->name); ?></span></strong><strong><span style="font-size:13.0pt">&nbsp;.</span></strong></span></p><p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:13.0pt">Nơi thường tr&uacute;:</span><span style="font-size:13.0pt"><?php echo e($renter->address_text); ?>. Sinh ng&agrave;y: <?php echo e(!empty($birthday) ? $birthday->format('d/m/Y') : '............'); ?></span></span> </p><p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:13.0pt">CMND số: <?php echo e($renter->id_number); ?>.&nbsp;</span></span> </p><p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:13.0pt">Điện thoại: <?php echo e($renter->phone); ?>.&nbsp;</span><span style="font-size:13.0pt">M&atilde; số VT: <?php if(!empty($renterDt)): ?><?php echo e($renterDt->note); ?> <?php endif; ?></span></span> </p><?php else: ?><p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:13.0pt"><?php echo e($loop->index + 1); ?>,</span><span style="font-size:13.0pt">Họ v&agrave; t&ecirc;n: <?php echo e($renter->name); ?>; SĐT: <?php echo e($renter->phone); ?>. Ng&agrave;y</span><span style="font-size:13.0pt"> sinh: <?php echo e(!empty($birthday) ? $birthday->format('d/m/Y') : '............'); ?>.</span></span></p><p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:13.0pt">CMND số: <?php echo e($renter->id_number); ?>;</span><span style="font-size:13.0pt"></span><span style="font-size:13.0pt">. M&atilde; số VT: <?php if(!empty($renterDt)): ?><?php echo e($renterDt->note); ?> <?php endif; ?>.</span></span> </p><?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:13.0pt">Tổng</span><span style="font-size:13.0pt"> s</span><span style="font-size:13.0pt">ố lượng người trong ph&ograve;ng : <?php echo e($renters->count()); ?>; Số lượng xe : <?php echo e($numberBikes); ?>. ( Tối đa 2 xe )</span></span> </p>