@extends('backend.admin.layouts.app') @section('content')
Product Detail
@if (file_exists(public_path() . '/uploads/products/' . $product->image)) @else @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

@foreach ($product->weight_variants as $weight_variant) @endforeach
Variation Price Action
{{ $weight_variant->weight->name }} {{ $weight_variant->price }} @include('backend.admin.vendors.editLabelVariation')
@endif
@if ($product->variants)

Color Variations

@foreach ($product->variants as $variant) @endforeach
Color Price Image Action
{{ optional($variant->color)->name }}
{{ $variant->price }} @include('backend.admin.vendors.editColorVariation')
@endif

@if (!empty($product->gallery_images))

Gallery

@foreach (json_decode($product->gallery_images) as $image) @endforeach @endif


Short Descriptionn
{{ $product->short_description }}


Long Descriptionn
{!! $product->long_description !!}

@endsection