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

Product Details

Product Images
@forelse($product->images as $image) @php $imagePath = str_replace('public/', '', $image->image); @endphp
@if($imagePath && file_exists(public_path($imagePath))) {{ $product->name }} @else
No Image
@endif
@empty
No Image Found
@endforelse
Basic Information
Product Name {{ $product->name }}
Slug {{ $product->slug }}
Product Code {{ $product->product_code }}
Category {{ $product->category ? $product->category->name : 'N/A' }}
Subcategory {{ $product->subcategory ? $product->subcategory->subcategoryName : 'N/A' }}
Brand {{ $product->brand ? $product->brand->name : 'N/A' }}
Status @if($product->status == 1) Active @else Inactive @endif
Top Sale @if($product->topsale == 1) Yes @else No @endif
Feature Product @if($product->feature_product == 1) Yes @else No @endif
Price & Stock
Purchase Price {{ number_format($product->purchase_price, 2) }}
Regular Price {{ number_format($product->regular_price ?? 0, 2) }}
Discount Price {{ number_format($product->discount_price, 2) }}
Stock {{ $product->stock }}
Color & Size
Colors @forelse($product->colors as $color) {{ $color->colorName }} @if($color->color) @endif @empty N/A @endforelse
Sizes @forelse($product->sizes as $size) {{ $size->sizeName }} @empty N/A @endforelse
Meta Description
{!! $product->meta_description ? nl2br(e($product->meta_description)) : 'N/A' !!}
Product Description
{!! $product->description ? nl2br(e($product->description)) : 'N/A' !!}
@endsection