Product Detail
@if (file_exists(public_path() . '/uploads/products/' . $product->image))
@else
@endif
@endif
-
Product Name: {{ $product->name }}
-
Country: {{ !empty($product->country->name) ? $product->country->name : '-' }}
@php
$category = App\Models\Category::where('id', $product->category_id)
->where('parent_id', '!=', null)
->first();
$m_category = App\Models\Category::orderBy('id', 'desc')
->where(['id' => $category->parent_id])
->first();
@endphp
-
Product Name: {{ $m_category->name }} / {{ $category->name }}
-
Price: {{ $product->sale_price }}
@if ($product->sizes)
Size
@php $sizes = json_decode($product->sizes, true); @endphp @if ($sizes && is_array($sizes)) @foreach ($sizes as $id) @php $size = App\Models\Size::find($id); @endphp @if ($size) @endif @endforeach @endif @endif@if ($product->weight_variants)
{{ $product->variation_label }} Variations
@if ($product->variants)
Color Variations
| Color | Price | Image | Action |
|---|---|---|---|
|
{{ optional($variant->color)->name }}
|
{{ $variant->price }} |
|
@include('backend.admin.vendors.editColorVariation') |
@if (!empty($product->gallery_images))
Gallery
@foreach (json_decode($product->gallery_images) as $image)
Short Descriptionn
{{ $product->short_description }}