@extends('admin.layouts.app') @section('title', 'Variations Management') @section('content')
@if(isset($product)) Manage variations for {{ $product->name_en }} @else Manage variation options and types @endif
SKU | Image | Options | Price | Stock | Status | Actions |
---|---|---|---|---|---|---|
{{ $variation->sku }} |
@if($variation->image)
|
@foreach($variation->options as $option) @if($option->type->slug === 'color' && $option->code) @endif {{ $option->type->name_en }}: {{ $option->value_en }} @endforeach | ${{ number_format($variation->price, 2) }} @if($variation->discount_price) ${{ number_format($variation->discount_price, 2) }} @endif | {{ $variation->stock }} | {{ $variation->is_active ? 'Active' : 'Inactive' }} | |
No variations found. Click "Add Variation" to create one. |
Type | Value (EN) | Value (AR) | Code | Order | Status | Actions |
---|---|---|---|---|---|---|
{{ $option->type->name_en }} | {{ $option->value_en }} | {{ $option->value_ar }} | @if($option->code) {{ $option->code }} @endif | {{ $option->order }} | {{ $option->is_active ? 'Active' : 'Inactive' }} | |
No variation options found. |