@extends('admin.layouts.master-soyuz') @section('title',__('Edit Product Variant | ')) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('Edit Product Variant') }} @endslot @slot('menu2') {{ __("Edit Product Variant") }} @endslot @slot('button')
{{ __("Back")}}
@endslot @endcomponent
@if ($errors->any()) @endif
@php $pro = App\Product::where('id',$vars->pro_id)->first(); $row = App\AddSubVariant::withTrashed()->where('pro_id',$vars->pro_id)->get(); @endphp
{{__("Edit Product Variant For")}} {{ $vars->products->name }}
{{ 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 or zero") }}
{{ __('Ex. :') }}

{{ __("If you enter +10 and product price is 100 than price will be 110") }}
{{__('OR')}}
{{__("If you enter -10 and product price is 100 than price will be 90")}}



{{__("Important")}}

  • {{__("Altleast two variant image is required !")}}
  • {{__("Default image will be")}} Image 1 {{ __("later you can change default image in edit variant section") }}
@if($vars->variantimages && $vars->variantimages['image1']) @else @endif
Image 1
@if($vars->variantimages && $vars->variantimages['image2']) @else @endif
Image 2
@if($vars->variantimages && $vars->variantimages['image3']) @else @endif
Image 3
@if($vars->variantimages && $vars->variantimages['image4']) @else @endif
Image 4
@if($vars->variantimages && $vars->variantimages['image5']) @else @endif
Image 5
@if($vars->variantimages && $vars->variantimages['image6']) @else @endif
Image 6


@endsection @section('custom-script') @endsection