 <?php $__currentLoopData = $renters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $renter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $renterDt = \App\Models\Renter::where('user_id', $renter->id)->first(); ?> <?php
        if(!empty($renter->birthday))
{
$birthday = null;
$idNumberDate = null;
     try {
         $birthday = \Carbon\Carbon::createFromFormat('Y-m-d',$renter->birthday);
     } catch (Exception $exception)
     {
         $birthday = \Carbon\Carbon::createFromFormat('d/m/Y',$renter->birthday);
     }

      try {
         $idNumberDate = \Carbon\Carbon::createFromFormat('Y-m-d',$renterDt->id_number_date);
     } catch (Exception $exception)
     {
     }
}
    ?> <?php if(empty($renter->contract_id)): ?> <ol> <li><span style="font-family:Times New Roman,Times,serif"><span style="font-size:12.0pt">Họ và tên: <?php echo e($renter->name); ?> Sinh ngày: <?php echo e(!empty($birthday) ? $birthday->format('d/m/Y') : '............'); ?></span></span></li> </ol> <p><span style="font-family:Times New Roman,Times,serif"><span style="font-size:12.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMND/CCCD số: <?php echo e($renter->id_number); ?> Ngày cấp: <?php echo e(!empty($idNumberDate) ? $idNumberDate->format('d/m/Y') : '............'); ?> Nơi cấp: <?php echo e($renterDt->id_number_location); ?></span></span></p> <p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:12.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SĐT: <?php echo e($renter->phone); ?></span></span></p> </p><?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </p>