<table class="table table-bordered table-hover"> <tbody> <tr> <td> Tên</td> <td> <strong><?php echo e($hostel->name); ?></strong> </td> </tr> <tr> <td> Loại nhà</td> <?php $type = \App\Models\HostelType::find($hostel->type); ?> <?php if($type): ?> <td> <strong><?php echo e($type->name); ?></strong> </td> <?php else: ?> <td></td> <?php endif; ?> </tr> <tr> <td> Hình thức cho thuê</td> <td> <strong><?php echo e($hostel->type_rent_text); ?></strong> </td> </tr> <tr> <td> Địa chỉ</td> <td> <strong><?php echo e($hostel->address); ?> </strong></td> </tr> <tr> <td> Chủ sở hữu</td> <td> <?php if($hostel->owner): ?> <strong><?php echo e($hostel->owner->name); ?> </strong><?php endif; ?></td> </tr> <tr> <td> Ngày chốt điện nước</td> <?php if($hostel->date_ew < 10): ?> <td> <strong> mùng <?php echo e($hostel->date_ew); ?> hàng tháng</strong></td> <?php else: ?> <td> <strong> <?php echo e($hostel->date_ew); ?> hàng tháng</strong></td> <?php endif; ?> </tr> <tr> <td> Ngày chốt sổ tính phí</td> <?php if($hostel->date_money < 10): ?> <td> <strong> mùng <?php echo e($hostel->date_money); ?> hàng tháng</strong></td> <?php else: ?> <td> <strong> <?php echo e($hostel->date_money); ?> hàng tháng</strong></td> <?php endif; ?> </tr> </tbody> </table>