@props(['product', 'resource']) @php $productSlug = \Illuminate\Support\Str::slug($product->name); $imageUrl = Storage::url($resource->file); $caption = $resource->caption ?: 'Fibbers Archive Item'; $hasPhotoTeeWhite = file_exists(public_path('images/mockups/tshirt-white.jpg')); $hasPhotoTeeBlack = file_exists(public_path('images/mockups/tshirt-black.jpg')); $hasPhotoMug = file_exists(public_path('images/mockups/mug-white.jpg')); $hasPhotoHoodieWhite = file_exists(public_path('images/mockups/hoodie-white.jpg')); $hasPhotoHoodieBlack = file_exists(public_path('images/mockups/hoodie-black.jpg')); $hasArtPrintPortrait = file_exists(public_path('images/mockups/art-print-portrait.jpg')); $hasArtPrintLandscape = file_exists(public_path('images/mockups/art-print-landscape.jpg')); $resourcePath = public_path('storage/' . $resource->file); $isLandscape = false; if (file_exists($resourcePath)) { $imgSize = @getimagesize($resourcePath); if ($imgSize && $imgSize[0] > $imgSize[1]) { $isLandscape = true; } } @endphp
Original Artifact Detail
@endif
@if($hasPhotoTeeWhite)
@endif
@endif
@endif
@if($hasPhotoHoodieWhite)
@endif
@endif
@endif