@extends("admin.layouts.sellermaster") @section('title','Edit Product Variant -') @section("body")
Edit Product Variant For {{ $vars->products->name }}
@php $pro = App\Product::where('id',$vars->pro_id)->first(); $row = App\AddSubVariant::withTrashed()->where('pro_id',$vars->pro_id)->get(); @endphp
{{ csrf_field() }}
@foreach($pro->variants as $key => $var)
@php $k = '_'; @endphp @if (strpos($var->getattrname->attr_name, $k) == false) {{ $var->getattrname->attr_name }} @else {{str_replace('_', ' ', $var->getattrname->attr_name)}} @endif
@foreach($var->attr_value as $a => $value) @php $nameofvalue = App\ProductValues::where('id','=',$value)->first(); @endphp @endforeach
@endforeach

Please enter Price In Positive or Negative

Ex. If for this product price is 100 and you enter +10 than price will be 110
OR
If for this product price is 100 and you enter -10 than price will be 90



{{-- example --}}
@if($vars->variantimages['image1']) @else @endif
Choose File
No file chosen...

@if($vars->variantimages['image1'] != null)
@endif
@if($vars->variantimages['image2']) @else @endif
Choose File
No file chosen...

@if($vars->variantimages['image2'] != null)
@endif
@if($vars->variantimages['image3']) @else @endif
Choose File
No file chosen...

@if($vars->variantimages['image3'] != null)
@endif
@if($vars->variantimages['image4']) @else @endif
Choose File
No file chosen...

@if($vars->variantimages['image4'] != null)
@endif
@if($vars->variantimages['image5']) @else @endif
Choose File
No file chosen...

@if($vars->variantimages['image5'] != null)
@endif
@if($vars->variantimages['image6']) @else @endif
Choose File
No file chosen...

@if($vars->variantimages['image6'] != null) @if($vars->variantimages['image6'] != $vars->variantimages['image2'])
@endif @endif



@endsection @section('custom-script')