@extends('admin.layouts.master') @section('title',"View $pro->name's All Variants - ") @section('body')
{{$pro->name}}'s Variant Sold by : {{ $pro->store->name }}

In: {{ $pro->category->title }} {{ $pro->subcategory->title }} @if(isset($pro->childcat)) {{ $pro->childcat->title }} @endif
@foreach($pro->subvariants as $key=> $sub) @endforeach
Variant Detail Pricing Details Added / Updated On Status 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)) }}

@if($sub->status == 1) Active @else Deactive @endif
@foreach($pro->subvariants as $key=> $sub) @endforeach @endsection