@php $p = $product ?? (object) []; $gallery = $gallery ?? collect(); $productLeatherTypeIds = $productLeatherTypeIds ?? []; $leatherTypes = $leatherTypes ?? collect(); $masterShadesByLeather = $masterShadesByLeather ?? []; $productShadeSofas = $productShadeSofas ?? []; $categories = $categories ?? collect(); @endphp