@php use App\Helpers\Schema\SchemaHelper; use App\Http\Resources\Shop\Product\MainProductResource; use App\Models\Product\Product; use App\Helpers\SubDomainHelper; @endphp @php /** @var Product $product */ @endphp @php /** @var MainProductResource $productResource */ @endphp @extends('shop::layout.main') @section('title', $productResource['title']) @section('meta_title', $productResource['meta_title']) @section('meta_description', $productResource['meta_description']) @section('meta_type', 'product') @if($mainImage = $productResource['images']['large'][0]) @section('meta_image_path', $mainImage['source']) @section('meta_image_width', $mainImage['width']) @section('meta_image_height', $mainImage['height']) @section('meta_image_type', $mainImage['type']) @section('meta_image_alt', $productResource['meta_title']) @endisset @section('content-wrapper') @push('schema', SchemaHelper::getProductPageSchemas($product)) @endsection