@extends('layouts.app') @section('content')
Edit Product: {{ $product->name }}
ID: #{{ $product->id }}
{{-- ============= GENERAL TAB ============= --}}
@csrf @method('PUT')
Select colors to enable variation specific inventory allocation.
is_active) ? 'checked' : '' }}>
is_new) ? 'checked' : '' }}>
is_featured) ? 'checked' : '' }}>
is_coming_soon) ? 'checked' : '' }}>
Pricing & Stock Inventory
{{-- ============= SPECIFICATIONS TAB ============= --}}
@csrf @method('PUT')
Technical Specifications

Add detailed attributes for the product comparison table

@foreach($product->specifications as $index => $spec)
@endforeach
{{-- ============= VARIANTS TAB ============= --}}
@csrf @method('PUT')
Product Variations

Define specific models, sizes, or configurations (e.g. 128GB, 256GB)

@foreach($product->variants as $vi => $variant)
Variation #{{ $vi + 1 }}
@foreach($variant->productVariantColors as $pvc)
{{ $pvc->productColor->color->name }}
@endforeach
@endforeach
Need another configuration? Click below to add a new model variant.
{{-- ============= FREE ITEMS TAB ============= --}}
@csrf @method('PUT')
Bundle Offers (Catalog)

Search for items in your inventory to give away for free with this product.

{{-- This will be managed by JS or loaded from blade --}}
@foreach($product->freeItems as $fi) @if($fi->free_product_id && $fi->freeProduct) @elseif($fi->free_product_variant_id && $fi->freeProductVariant) @endif @endforeach
@if($fi->freeProduct->image) @endif
{{ $fi->freeProduct->name }}
Base Product
{{ $fi->freeProductVariant->product->name ?? 'Unknown' }}
Variant: {{ $fi->freeProductVariant->name }}
Promo Items (Manual)

Select items from the pre-defined Free Gifts master list.

{{-- ============= FAQs TAB ============= --}}
@csrf @method('PUT')
Customer Support FAQs

Anticipate customer questions about this specific item

@foreach($product->faqs as $fi => $faq)
@endforeach
{{-- ============= MEDIA TAB ============= --}}
@csrf @method('PUT')
Primary Image (Thumbnail)
@if($product->image) @endif

Recommended: 800x800px (PNG/JPG)

Product Video Spotlight
Paste a YouTube or Vimeo link for the product page spotlight.
Color-Specific Media Galleries
@foreach($product->productColors as $pc) @endforeach
@endsection @push('scripts') @endpush