@extends('admin.layouts.sellermastersoyuz') @section('title',__('View :pro \'s all variants',['pro' => $pro->name])) @section('body') @component('seller.components.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('View :pro \'s all variants',['pro' => $pro->name]) }} @endslot @slot('menu1') {{ __('Variant Product') }} @endslot @slot('menu2') {{ __('View All Variants') }} @endslot @slot('button')
{{ __("Back")}}
@endslot @endcomponent
{{__('View :pro \'s all variants',['pro' => $pro->name])}} @php $getstorename = App\Store::where('id',$pro->store_id)->first()->name; @endphp {{__('Sold by :')}} {{ $getstorename }}

@php $getcatname = App\Category::where('id',$pro->category_id)->first()->title; $getsubcatname = App\Subcategory::where('id',$pro->child)->first()->title; if(isset($pro->grand_id) && $pro->grand_id != 0){ $getchildaname = App\Grandcategory::where('id',$pro->grand_id)->first(); } @endphp
{{__('In:')}} {{ $getcatname }} {{ $getsubcatname }} @if(isset($pro->grand_id) && $pro->grand_id != 0) {{ $getchildaname->title }} @endif
@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['image2'])) {{ $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)) }}

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