@extends('user.layout') @section('title')
{{ __('Image') }} | {{ __('Property') }} | {{ __('Date') }} | {{ __('Views') }} | {{ __('Action') }} |
---|---|---|---|---|
|
{{ $wishlist->property->translation?->title }}{{ $wishlist->property->translation?->address . ', ' . $wishlist->property->city?->title }} @php $total_review = $wishlist->property->reviews->where('status', 1)->count(); if ($total_review > 0) { $avg_sum = $wishlist->property->reviews ->where('status', 1) ->sum('avarage_rating'); $avg = $avg_sum / $total_review; $intAvg = intval($avg); $nextVal = $intAvg + 1; $reviewPoint = $intAvg; $halfReview = false; if ($intAvg < $avg && $avg < $nextVal) { $reviewPoint = $intAvg + 0.5; $halfReview = true; } } @endphp @if ($total_review > 0) @else0.0 @for ($i = 1; $i <= 5; $i++) @endfor ({{ 0 }} {{ __('Reviews') }}) @endif |
{{ $wishlist->created_at->format('Y-m-d') }} |
{{ $wishlist->property->views }} |