@extends('layouts.vendor') @section('content')

View Product Details

Product ID

{{ $product->id }}

product SKU

{{ $mainOption->sku ?? 'N/A' }}

Product category

{{ $product->category->name ?? 'N/A' }}

Product Name

{{ $product->name ?? 'N/A' }}

product Brand

{{ $product->brand->name ?? 'N/A' }}

description

{{ $product->description ?? 'N/A'}}

Size

{{ $variant->size->name ?? $variant->variation->name ?? 'N/A' }}

Color

{{ $mainOption->color->name ?? 'N/A' }}

Quantity

{{ $mainOption->quantity ?? 'N/A' }}

@php $isDisabled = $vendor->disabledVariants->contains($variant->id) || $variant->status != 'in_stock'; @endphp
status

{{ $isDisabled ? 'Out of Stock' : 'In Stock' }}

additional information

Available Models

@foreach ($product->models as $index => $model)
{{ $index + 1 }}. {{ $model->title }}

{{ $model->description }}

@endforeach
dimensions

{{ $variant->length }} * {{ $variant->width }} * {{ $variant->height }}

Product Weight

{{ $variant->weight ?? 'N/A' }}Kg

Max. load

{{ $variant->max_load ?? 'N/A' }}Kg

volume

{{ $variant->volume ?? 'N/A' }}L

Related Product

@forelse ($relatedProducts as $relatedProduct) @php $mainPhoto = $relatedProduct->homePhoto->image_path ?? null; @endphp
{{ $relatedProduct->name }}
{{ $relatedProduct->name }}
@empty

No related products found.

@endforelse

Other Information

    @foreach ($product->otherInfo as $info)
  • {{ $info->description }}

  • @endforeach
{{--
Edit Product
@csrf @method('DELETE')
--}}
Back to List
@endsection