@extends('admin.layouts.master-soyuz') @section('title','View All Variants - ') @section('body') ​ @component('admin.component.breadcumb',['thirdactive' => 'active']) ​ @slot('heading') {{ __('View Variants') }} @endslot ​ @slot('menu2') {{ __("View Variants") }} @endslot ​ ​ @slot('button')
{{ __("Back")}}
@endslot ​ @endcomponent
@if ($errors->any()) @endif ​ ​
{{ __('View Variants') }}
@foreach($pro->subvariants as $key=> $sub) @endforeach
# Variant Detail Pricing Details Added / Updated On Action
# {{ $key+1 }}
@if(count($pro->subvariants)>0) @if(isset($sub->variantimages['main_image'])) {{ $sub->variantimages['main_image'] }} @endif @else no-image.png @endif

Variant Name: {{ $pro->name }} (@foreach($sub->main_attr_value as $k => $getvar) {{-- Getting Attribute Names --}} @php $getattrname = App\ProductAttributes::where('id',$k)->first()->attr_name @endphp {{-- Getting Attribute Values --}} @php $getvalname = App\ProductValues::where('id',$getvar)->first(); @endphp @if(strcasecmp($getvalname['values'], $getvalname['unit_value']) !=0 && $getvalname->unit_value != null ) @if($getvalname->proattr->attr_name == "Color" || $getvalname->proattr->attr_name == "Colour" || $getvalname->proattr->attr_name == "color" || $getvalname->proattr->attr_name == "colour") {{ $getvalname['values'] }} @else {{ $getvalname['values'] }}{{ $getvalname->unit_value }}, @endif @else {{ $getvalname['values']}}, @endif @endforeach)

Additional Price: {{ $sub->price }}

Min Qty. For Order: {{ $sub->min_order_qty }}

Stock : {{ $sub->stock }} | Max Qty. For Order: {{ $sub->max_order_qty }}

@if($pro->vender_offer_price !=null)

Discounted Price : {{ $pro->offer_price }}

Selling Price : {{ $pro->price }}

@else

Selling Price : {{ $pro->price }}

@endif

(Incl. Admin Commission in this rate)

{{ date('M jS Y',strtotime($sub->created_at)) }},

{{ date('h:i A',strtotime($sub->created_at)) }}

{{ date('M jS Y',strtotime($sub->updated_at)) }}

{{ date('h:i A',strtotime($sub->updated_at)) }}

@foreach($pro->subvariants as $key=> $sub) @endforeach @endsection