@php use Botble\Theme\Facades\Theme; use Botble\Media\Facades\RvMedia; $modelUrl = $product->model_3d_url ?? null; $posterImage = $product->image ? RvMedia::getImageUrl($product->image) : null; $images = $product->images ?: []; // Lazy-load model-viewer (~1.5 MB) only on pages that render the 3D viewer. Theme::asset() ->container('footer') ->usePath() ->add('model-viewer', 'js/vendors/model-viewer.min.js', attributes: ['type' => 'module', 'async']); @endphp