@extends('layouts.app') @section('title', $product->title) @section('content')
{{ $product->title }}
{{ $product->price }}
累计销量 {{ $product->sold_count }}
累计评价 {{ $product->review_count }}
评分 {{ str_repeat('★', floor($product->rating)) }}{{ str_repeat('☆', 5 - floor($product->rating)) }}
@foreach($product->skus as $sku) @endforeach
@if($favored) @else @endif
{!! $product->description !!}
@foreach($reviews as $review) @endforeach
用户 商品 评分 评价 时间
{{ $review->order->user->name }} {{ $review->productSku->title }} {{ str_repeat('★', $review->rating) }}{{ str_repeat('☆', 5 - $review->rating) }} {{ $review->review }} {{ $review->reviewed_at->format('Y-m-d H:i') }}
@endsection @section('scriptsAfterJs') @endsection