@extends('dashboard.layouts.master') @section('title', 'Product Details') @section('content')
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') }}
| # | @foreach (array_keys($variants) as $attribute){{ str_replace('Select ', '', $attribute) }} | @endforeachStock | Price | Status | Action |
|---|---|---|---|---|---|
| {{ $index + 1 }} | @foreach (array_keys($variants) as $attribute){{ $variant['attributes'][$attribute]->values ?? 'N/A' }} | @endforeach{{ $variant['stock'] }} | Rs. {{ $variant['price'] }} | {{ $variant['stock'] > 0 ? 'Available' : 'Out of Stock' }} |