<?php $__currentLoopData = $renters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $renter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(url('admin/account/detail', ['id' => $renter->account->id])); ?>" > <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"> <div class="mt-card-item"> <div class="mt-card-avatar mt-overlay-1 mt-scroll-left" style="height: 400px; background-size: cover; background-repeat: no-repeat; background-image: url('<?php echo e($renter->account->image); ?>')" > </div> <div class="mt-card-content"> <h3 class="mt-card-name"><?php echo e($renter->account->name); ?></h3> <?php if(empty($renter->account->address)): ?> <p class="mt-card-desc font-grey-mint">Chưa có địa chỉ</p> <?php else: ?> <p class="mt-card-desc font-grey-mint"><?php echo e($renter->account->address); ?></p> <?php endif; ?> <?php if(str_contains(request()->fullUrl(), '/room/detail')): ?> <button style="margin-bottom: 15px" class="btn btn-danger btn-delete-renter"> Xóa khách thuê</button> <?php endif; ?> </div> </div> </div> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>