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

View Product Details

Product ID

{{ $product->id }}

product SKU

{{ 'N/A' }}

Product category

{{ $product->category->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' }}

status

{{ $variant->status ?? 'N/A' }}

additional information

Available Models

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

{{ $model->description }}

@endforeach
dimensions

{{ $product->length }} x {{ $product->width }} x {{ $product->height }}

Product Weight

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

Max. load

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

volume

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

Keywords

@foreach(explode(',', $product->keywords) as $keyword)

{{ trim($keyword) }}

@endforeach

Related Product

@foreach ($relatedOptions as $option) @if (in_array($option->id, $selectedOptionIds)) @php $relatedProduct = $option->variation->product; $mainPhoto = $relatedProduct->mainPhoto->image_path ?? null; $sku = $option->sku; @endphp
{{ $sku }}
{{ $sku }}
@endif @endforeach

Other Information

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

  • @endforeach
Edit Product
@csrf @method('DELETE')
@endsection