@extends('layouts.app') @php $currentLocale = app()->getLocale(); $translation = $product->translate($currentLocale); // $currentPrice = $product->current_price; // ✅ NEW: Use current_price accessor $primaryImage = $product->images->where('is_primary', true)->first() ?: $product->images->first(); @endphp @section('title', $translation->meta_title ?: $translation->name) @section('meta_description', $translation->meta_description ?: $translation->short_description) @section('meta_keywords', $translation->meta_keywords) @push('meta') {{-- ✅ ENHANCED: Better SEO meta tags --}} @if($translation->meta_keywords) @endif {{-- ✅ NEW: Product-specific meta tags --}} @if($product->brand) @endif {{-- Enhanced Open Graph --}} @if($primaryImage) @endif {{-- Product-specific Open Graph --}} @endpush @push('structured_data') {{-- ✅ ENHANCED: Rich structured data --}} {{-- Breadcrumb structured data --}} @endpush @push('styles') @endpush @section('content') {{-- ✅ NEW: Product Hero Section --}}
{{ $translation->short_description }}
{{ trim($key) }} | {{ trim($value) }} |
---|
{{ $reviewsSummary['total_reviews'] }} {{ __('reviews') }}
{{ __('Review system coming soon!') }}