관리-도구
편집 파일: _feature-product.blade.php
{{-- COUTURE atelier-plate card. Save as: _product-card-1.blade.php, _product-card-2.blade.php, _feature-product.blade.php (same content, all three). --}} @if(isset($product)) @php($overallRating = getOverallRating($product?->reviews)) <div class="cxp cxr" data-cat="{{ $product->category_id ?? '' }}" onclick="window.location.href='{{ route('product', $product->slug) }}'"> <div class="cxp__frame"> <img loading="lazy" src="{{ getStorageImages(path: $product->thumbnail_full_url, type: 'product') }}" alt="{{ $product['name'] }}"> <span class="cxp__no">{{ sprintf('%02d', ($loop->iteration ?? 1)) }}</span> @if(getProductPriceByType(product: $product, type: 'discount', result: 'value') > 0) <span class="cxp__tag">−{{ getProductPriceByType(product: $product, type: 'discount', result: 'string') }}</span> @endif @if(isset($product->product_type) && $product->product_type == 'physical' && $product->current_stock <= 0) <span class="cxp__tag" style="background:var(--c-taupe);">Sold Out</span> @endif <div class="cxp__veil" aria-hidden="true"></div> <div class="cxp__act"> <a class="stopPropagation action-product-quick-view" href="javascript:" data-product-id="{{ $product->id }}" onclick="event.stopPropagation();">Quick View</a> <a href="{{ route('product', $product->slug) }}" onclick="event.stopPropagation();">Details</a> </div> </div> <div class="cxp__meta"> <a class="cxp__name" href="{{ route('product', $product->slug) }}" onclick="event.stopPropagation();">{{ Str::limit($product['name'], 56) }}</a> <div class="cxp__rule"></div> <div> <span class="cxp__price">{{ getProductPriceByType(product: $product, type: 'discounted_unit_price', result: 'string') }}</span> @if(getProductPriceByType(product: $product, type: 'discount', result: 'value') > 0) <span class="cxp__was">{{ webCurrencyConverter(amount: $product->unit_price) }}</span> @endif </div> @if($overallRating[0] != 0) <div class="cxp__stars"> @for($i=1;$i<=5;$i++)<i class="tio-star{{ $i > (int)$overallRating[0] ? '-outlined off' : ' on' }}"></i>@endfor </div> @endif </div> </div> @endif