{{ $r->title }}
@endif @if ($r->body){{ $r->body }}
@endif{{ $r->first_name }} @if ($r->verified){{ __('Verified purchase') }}@endif
@extends('layouts.app') @section('title', $product->name) @section('description', \Illuminate\Support\Str::limit(strip_tags((string) ($product->short_description ?: $product->name)), 155)) @section('og_type', 'product') @if (!empty($product->images[0]->url))@section('og_image', url($product->images[0]->url))@endif @section('content') @php $m = $shop->money; $variants = collect($product->variants)->map(fn ($v) => [ 'id' => $v->id, 'color' => $v->color_code, 'size' => $v->size_code, 'stock' => $v->stock, 'price' => $m->format($v->unit_price), 'compare' => ($v->compare_at && $v->compare_at > $v->unit_price) ? $m->format($v->compare_at) : null, ])->values(); $images = collect($product->images); $gallery = $images->map(fn ($i) => ['url' => $i->url, 'alt' => $i->alt_text ?: $product->name, 'color' => $i->color_code])->values(); $wished = $shop->wished((int) $product->id); @endphp
{{ $m->format($product->price) }} {{ $product->compare_at ? $m->format($product->compare_at) : '' }}
@if ($product->short_description){{ $product->short_description }}
@endif @auth @endauth{{ $r->title }}
@endif @if ($r->body){{ $r->body }}
@endif{{ $r->first_name }} @if ($r->verified){{ __('Verified purchase') }}@endif