@extends('layouts.seller.app', ['page' => $menuSeller['products']['active'] ?? ""]) @section('title', __('labels.product_details')) @section('header_data') @php $page_title = __('labels.product_details'); $page_pretitle = __('labels.seller') . " " . __('labels.product_details'); @endphp @endsection @php $breadcrumbs = [ ['title' => __('labels.home'), 'url' => route('seller.dashboard')], ['title' => __('labels.products'), 'url' => route('seller.products.index')], ['title' => __('labels.product_details'), 'url' => ''] ]; @endphp @section('seller-content')

{{ __('labels.product_summary') }}

{{ __('labels.product_name') }}
{{ $product->title }}
{{ __('labels.product_type') }}
{{ $product->type }}
{{ __('labels.status') }}
{{ $product->status }}
{{ __('labels.verification_status') }}
{{ $product->verification_status }}
{{ __('labels.category') }}
{{ $product->category->title ?? 'N/A' }}
{{ __('labels.brand') }}
{{ $product->brand->title ?? 'N/A' }}
{{ __('labels.created_at') }}
{{ $product->created_at }}
{{ __('labels.updated_at') }}
{{ $product->updated_at }}

{{ __('labels.product_image') }}

@if($product->additional_images && count($product->additional_images) > 0)

{{ __('labels.additional_images') }}

@foreach($product->additional_images as $image) @endforeach
@endif
@php $customFields = is_array($product->custom_fields ?? null) ? $product->custom_fields : []; @endphp @if(!empty($customFields))

{{ __('labels.custom_fields') ?? 'Custom Fields' }}

@foreach($customFields as $cfKey => $cfValue)
{{ ucwords(str_replace('_',' ', (string)$cfKey)) }}
{{ is_array($cfValue) ? implode(', ', $cfValue) : $cfValue }}
@endforeach
@endif

{{ __('labels.product_description') }}

{!! $product->description !!}
@if(isset($storeVariantPricing) && count($storeVariantPricing) > 0)

{{ __('labels.store_wise_pricing') }}

@foreach($storeVariantPricing as $variantId => $variantData)

{{ __('labels.variant_name') . " : " . $variantData['title'] }}

@if(count($variantData['attributes']) > 0)
{{ __('labels.attributes') }}: @php $attributeTexts = []; foreach($variantData['attributes'] as $attr) { $attributeTexts[] = $attr['attribute_name'] . ': ' . $attr['attribute_value']; } echo implode(', ', $attributeTexts); @endphp
@endif @if(count($variantData['store_pricing']) > 0)
@foreach($variantData['store_pricing'] as $storePricing) @endforeach
{{ __('labels.store') }} {{ __('labels.sku') }} {{ __('labels.price') }} {{ __('labels.special_price') }} {{ __('labels.cost') }} {{ __('labels.stock') }}
{{ $storePricing['store_name'] }} {{ $storePricing['sku'] }} {{ $systemSettings['currencySymbol'] . number_format($storePricing['price'], 2) }} {{ $storePricing['special_price'] ? $systemSettings['currencySymbol'] . number_format($storePricing['special_price'], 2) : 'N/A' }} {{ $storePricing['cost'] ? $systemSettings['currencySymbol'] . number_format($storePricing['cost'], 2) : 'N/A' }} {{ $storePricing['stock'] }}
@else

{{ __('labels.no_store_pricing_available') }}

@endif
@if(!$loop->last)
@endif @endforeach
@endif @if($product->faqs->count() > 0)

{{ __('labels.product_faqs') }}

@foreach($product->faqs as $index => $faq)

{{ $faq->answer }}
@endforeach
@endif
@endsection @push('scripts') @endpush