@extends('admin.layouts.master-soyuz') @section('title','Create '.$findpro->name.' variant | ') @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 variant? This process cannot be undone.
Do you really want to delete this variant? This process cannot be undone.