Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Property/resources/views/user/review/review.blade.php
Назад
@extends('user.layout') @section('title') <title>{{ __('My Reviews') }}</title> @endsection @section('user-dashboard') <div class="wsus__dashboard_main_content"> <div class="wsus__dash_riview"> <h4 class="heading">{{ __('My Reviews') }}</h4> <div class="row"> <div class="col-xl-12"> <div class="wsus__dash_info p_25 pb_0 pt_0 xs_pl_15 xs_pr_15"> @foreach ($myReviews as $review) <div class="wsus__message_single"> <div class="wsus__message_img"> <img src="{{ url($review->property->thumbnail_image) }}" alt="img" class="img-fluid"> </div> <div class="wsus__message_text"> @php $avg = $review->avarage_rating; $intAvg = intval($avg); $nextVal = $intAvg + 1; $reviewPoint = $intAvg; $halfReview = false; if ($intAvg < $avg && $avg < $nextVal) { $reviewPoint = $intAvg + 0.5; $halfReview = true; } @endphp <p> @for ($i = 1; $i <= 5; $i++) @if ($i <= $reviewPoint) <i class="fas fa-star"></i> @elseif ($i > $reviewPoint) @if ($halfReview == true) <i class="fas fa-star-half-alt"></i> @php $halfReview = false; @endphp @else <i class="fal fa-star"></i> @endif @endif @endfor </p> <a href="{{ route('property.details', $review->property->slug) }}" class="ttile">{{ $review->property->title }}</a> <span>{{ $review->created_at->format('d M Y') }}</span> <p>{{ $review->comment }}</p> </div> <div class="wsus__message_icon"> <a class="del" href="{{ route('user.delete-review', $review->id) }}"><i class="fas fa-trash"></i></a> <a class="edit" href="{{ route('user.edit-review', $review->id) }}"><i class="fal fa-edit"></i></a> </div> </div> @endforeach </div> {{ $myReviews->links('custom_paginator') }} </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка