관리-도구
편집 파일: 3dcf126cd62749a8c95689c09ea9a0e9430bca8f.php
<?php $featuredproperty = App\Models\Property::where('status', 1)->where('is_featured', 1)->latest()->take(8)->get(); ?> <div class="featured-slider non-editable-area" data-gjs-stylable='false' data-gjs-draggable='false' data-gjs-editable='false' data-gjs-removable='false' data-gjs-propagate='["removable","editable","draggable","stylable"]'> <?php $__currentLoopData = $featuredproperty; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $property): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $property_exist = App\Models\Payment::where('property_id', $property->id) ->where('user_id', Auth::id()) ->where('next_payment_date', '!=', null) ->where('payment_status', 1) ->first(); ?> <div class="single-slide"> <div class="featured-item"> <div class="thumb" style="background-image: url(<?php echo e(getFile('property', $property->image)); ?>)"> <a href="<?php echo e(route('investmentproperty.details', $property->id)); ?>" class="plan-link" aria-label="Plan details link"></a> <span class="featured-badge"><?php echo e(__('Featured')); ?></span> </div> <div class="content"> <div class="top mb-4"> <div class="top-content"> <h3 class="title h4"> <a href="<?php echo e(route('investmentproperty.details', $property->id)); ?>"><?php echo e(__($property->property_name)); ?></a> </h3> <p class="mb-2"><i class="bi bi-geo-alt"></i> <?php echo e(__($property->property->address)); ?></p> </div> <?php $wishlist = \App\Models\Wishlist::where('user_id', auth()->id()) ->where('property_id', $property->id) ->first(); ?> <button type="button" data-href="<?php echo e(route('user.bookmark', $property)); ?>" data-bookmark="<?php echo e($wishlist ? true : false); ?>" class="featured-bookmark-btn <?php echo e($wishlist ? 'bookmarked' : ''); ?>" aria-label="Bookmark"> <i class="far fa-heart first-bookmark"></i> <i class="fas fa-heart second-bookmark"></i> </button> </div> <div class="row gy-4"> <div class="col-6"> <div class="featured-info-item"> <h5 class="title mb-1"> <?php if($property->amount_type == 0): ?> <span> <?php echo e(number_format($property->minimum_amount, 2) . ' ' . $general->site_currency); ?></span> <?php else: ?> <span> <?php echo e(number_format($property->amount, 2) . ' ' . $general->site_currency); ?></span> <?php endif; ?> </h5> <p class="mb-0"><?php echo e(__('Min Invest Amount')); ?></p> </div> </div> <div class="col-6"> <div class="featured-info-item"> <h5 class="title mb-1"> <?php echo e(number_format($property->return_interest, 2)); ?> <?php if($property->interest_status == 'percentage'): ?> <?php echo e('%'); ?> <?php else: ?> <?php echo e($general->site_currency); ?> <?php endif; ?> </h5> <p class="mb-0"><?php echo e(__('Return Rate')); ?></p> </div> </div> <div class="col-6"> <div class="featured-info-item"> <h5 class="title mb-1"><?php echo e($property->time->name); ?></h5> <p class="mb-0"><?php echo e(__('Target Duration')); ?></p> </div> </div> <div class="col-6"> <div class="featured-info-item"> <h5 class="title mb-1"> <?php if($property->return_for): ?> <?php echo e(__('Period')); ?> <?php else: ?> <?php echo e('Lifetime'); ?> <?php endif; ?> </h5> <p class="mb-0"><?php echo e(__('Return For')); ?></p> </div> </div> </div> <div class="feature-footer"> <div class="property-ratings"> <?php $reviews = round($property->reviews->avg('rating')); ?> <?php if($reviews == 5): ?> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <?php elseif($reviews == 4): ?> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="far fa-star"></i> <?php elseif($reviews == 3): ?> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <?php elseif($reviews == 2): ?> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <?php elseif($reviews == 1): ?> <i class="fas fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <?php else: ?> <i class="far fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i> <?php endif; ?> <span>(<?php echo e($property->reviews->count()); ?> <?php echo e(__('reviews')); ?>)</span> </div> <div class="w-100"> <?php if($property_exist): ?> <a class="cmn-btn" href="<?php echo e(route('investmentproperty.details', $property->id)); ?> "> <?php echo e(__('Already Invested')); ?> </a> <?php else: ?> <a href="<?php echo e(route('investmentproperty.details', $property->id)); ?>" class="featured-property-btn w-100" aria-label="Plan details link"> <span><?php echo e(__('Check Full Details')); ?></span> <i class="bi bi-arrow-up-right ms-2"></i> </a> <?php endif; ?> </div> </div> </div> </div> </div><!-- single-slide end --> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php /**PATH /home/inprosysltd/public_html/cityscape.inprosysltd.com/core/resources/views/backend/frontend/not_editable/featured.blade.php ENDPATH**/ ?>