@extends('dashboard.layouts.master') @section('title', 'Product Details') @section('content')

{{ $product->title }} Details

Product Thumbnail
@if ($product->banner_image)

Banner Image

Banner Image @endif

Product Name: {{ $product->title }}

Sub Title: {{ $product->sub_title ?? 'N/A' }}

Categories: @if ($product->categories->count()) @foreach ($product->categories as $category) {{ $category->name }}@if (!$loop->last) , @endif @endforeach @else N/A @endif

Slug: {{ $product->slug ?? 'N/A' }}

Display Price: Rs. {{ $product->display_price ?? 'N/A' }}

Selling Price: Rs. {{ $product->selling_price ?? 'N/A' }}

Cost Price: Rs. {{ $product->cost_price ?? 'N/A' }}

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

Status: {{ $product->status ? 'Active' : 'Inactive' }}

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

Summary: {{ $product->summary ?? 'N/A' }}

Meta Title: {{ $product->meta_title ?? 'N/A' }}

Meta Description: {{ $product->meta_description ?? 'N/A' }}

Meta Keywords: @if (is_array($product->meta_keywords)) {{ implode(', ', $product->meta_keywords) }} @else {{ $product->meta_keywords ?? 'N/A' }} @endif

Created At: {{ $product->created_at->format('d M, Y h:i A') }}


@if ($product->designs->count() > 0)

Product Designs ({{ $product->designs->count() }})


@endif @if ($resolvedVariants->count() > 0)

Product Variants ({{ $resolvedVariants->count() }})

@foreach (array_keys($variants) as $attribute) @endforeach @foreach ($resolvedVariants as $index => $variant) @foreach (array_keys($variants) as $attribute) @endforeach @endforeach
#{{ str_replace('Select ', '', $attribute) }}Stock Price Status Action
{{ $index + 1 }} {{ $variant['attributes'][$attribute]->values ?? 'N/A' }} {{ $variant['stock'] }} Rs. {{ $variant['price'] }} {{ $variant['stock'] > 0 ? 'Available' : 'Out of Stock' }}

@endif

Product Images ({{ $product->images->count() }})

@livewire('product-image', ['product' => $product])
@endsection @push('styles') @endpush @push('scripts') @endpush