@extends('layouts.app') @section('content')

Add Product Variation

Back to Variations
@if($errors->any()) @endif
@csrf
Product Information
@if($product->images && count($product->images) > 0) {{ $product->name }} @else
@endif
{{ $product->name }}

SKU: {{ $product->sku ?: 'N/A' }}

Base Price: RM {{ number_format($product->price, 2) }}

Variation Attributes
Define the characteristics that make this variation unique (e.g., Size: Large, Color: Red)
Pricing & Stock
Amount to add/subtract from base price (RM {{ number_format($product->price, 2) }})
Final Price: RM {{ number_format($product->price, 2) }}
@error('price_adjustment')
{{ $message }}
@enderror
@error('stock_quantity')
{{ $message }}
@enderror
Variation Image
Optional. Shows a specific image for this variation. Recommended size: 500x500 pixels
@error('image')
{{ $message }}
@enderror
Preview
Variation Settings
Leave empty to auto-generate from attributes
@error('sku')
{{ $message }}
@enderror
Inactive variations won't be available for purchase
Lower numbers appear first
@error('sort_order')
{{ $message }}
@enderror
Variation Preview
Add attributes to see preview
Cancel
@endsection @push('scripts') @endpush