@extends('admin.layouts.app') @section('title', 'All Reviews') @section('section') @php if (!empty($reviews->content)) { // Decode the 'content' JSON string into an associative array. $decodedData = json_decode($reviews->content, true); } @endphp
| User Name | Image | Star | Description | Edit | Delete |
|---|---|---|---|---|---|
| {{ $review->user_name ? : '' }} | ![]() |
@if($review->star_rated) @for($i = 1; $i <= $review->star_rated; $i++) @endfor @for($j = $review->star_rated + 1; $j <= 5; $j++) @endfor @else Not Available @endif | @php $cleanedDescription = strip_tags($review->description); $limitedDescription = Illuminate\Support\Str::limit($cleanedDescription, 120); @endphp {{ $limitedDescription }} {{-- @if(strlen($cleanedDescription) > 50)--}} {{-- ...--}} {{-- @endif--}} | Edit | Delete |