@extends('admin.layouts.master-soyuz') @section('title',__('Create :product variant |',['product' => $findpro->name])) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('Variant Product') }} @endslot @slot('menu2') {{ __("Variant Product") }} @endslot @slot('button')
@endslot @endcomponent{{ $error}}
@endforeach# | {{__("Variant Name")}} | {{__("Variant Value")}} | {{__("Action")}} |
---|---|---|---|
{{ $key+1 }} | @php $nameofattr = App\ProductAttributes::where('id','=',$commonvariant->cm_attr_id)->first()->attr_name; @endphp @php $key = '_'; @endphp @if (strpos($nameofattr, $key) == false) {{ $nameofattr }} @else {{str_replace('_', ' ', $nameofattr)}} @endif | @php $nameofval = App\ProductValues::where('id','=',$commonvariant->cm_attr_val)->first(); @endphp @if($nameofattr == "Color" || $nameofattr == "Colour" || $nameofattr == 'color' || $nameofattr == 'colour') {{ $nameofval->values }} @else @if($nameofval->unit_value != null && strcasecmp($nameofval->unit_value, $nameofval->values) != 0) {{ $nameofval->values }}{{ $nameofval->unit_value }} @else {{ $nameofval->values }} @endif @endif |
# | {{ __("Option Names") }} | {{ __("Option Value") }} | {{ __("Action") }} |
---|---|---|---|
{{ $i }} | @php $key = '_'; @endphp @if (strpos($opt->getattrname->attr_name, $key) == false) {{ $opt->getattrname->attr_name }} @else {{str_replace('_', ' ', $opt->getattrname->attr_name)}} @endif |
@foreach($opt->attr_value as $value)
@php
$originalvalue = App\ProductValues::where('id',$value)->get();
@endphp
@foreach($originalvalue as $value)
@if($value->unit_value !=null && strcasecmp($value->unit_value,
$value->values) != 0)
@endforeach
@endforeach
|
# | {{__("Name")}} | {{__("Additional Detail")}} | {{__('Default')}} | {{__('Action')}} |
---|---|---|---|---|
{{$key+1}} | @foreach($sub->main_attr_value as $key=> $originalvalue)
@if($originalvalue != 0)
@php
$getattrname = App\ProductAttributes::where('id',$key)->first();
@endphp
@php
$getattrval = App\ProductValues::where('id',$originalvalue)->first();
@endphp
@php
$key = '_';
@endphp
@if (strpos($getattrname->attr_name, $key) == false)
{{ $getattrname->attr_name }}
@else
{{str_replace('_', ' ', $getattrname->attr_name)}}
@endif
:
@if(strcasecmp($getattrval->unit_value, $getattrval->values) !=0)
@if($getattrname->attr_name == "Color" || $getattrname->attr_name ==
"Colour")
{{ $getattrval->values }}
@else
{{ $getattrval->values }}{{ $getattrval->unit_value }}
@endif
@else
{{ $getattrval->values }}
@endif
@else @php $getattrname = App\ProductAttributes::where('id',$key)->first(); @endphp {{ $getattrname->attr_name }} : Not Available @endif @endforeach |
{{__("Price")}}: {{ $sub->price }} {{__("Stock")}}: {{ $sub->stock }} {{__("Weight")}}: {{ $sub->weight }}{{ $sub->unitname->short_code ?? '' }} {{__("Min Order Qty")}}:{{ $sub->min_order_qty }} {{__('Max Order Qty')}}:{{ $sub->max_order_qty }} |
def==1 ? "checked" : "" }}> |
{{__('Do you really want to delete this variant? This process cannot be undone.')}}
{{__('Do you really want to delete this option? This process cannot be undone.')}}
{{__("Do you really want to delete this variant? This process cannot be undone.")}}