@php $p = $product ?? (object) []; $gallery = $gallery ?? collect(); $productLeatherTypeIds = $productLeatherTypeIds ?? []; $leatherTypes = $leatherTypes ?? collect(); $masterShadesByLeather = $masterShadesByLeather ?? []; $productShadeSofas = $productShadeSofas ?? []; $categories = $categories ?? collect(); @endphp
is_new_arrival ?? 0) === '1')>
is_customisable ?? 0) === '1')>
status ?? 1) === '1')>
@if(!empty($p->image))
collection image
@endif
@include('admin.products._leather_types', [ 'productLeatherTypeIds' => $productLeatherTypeIds, 'leatherTypes' => $leatherTypes, ]) @include('admin.products._product_shades', [ 'masterShadesByLeather' => $masterShadesByLeather ?? [], 'productShadeSofas' => $productShadeSofas ?? [], ]) @include('admin.products._gallery', ['gallery' => $gallery])