@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')
@endslot @endcomponent# | {{__('Variant Detail')}} | {{__("Pricing Details")}} | {{__('Added / Updated On')}} | {{__('Action')}} |
---|---|---|---|---|
{{ $key+1 }} |
@if(count($pro->subvariants)>0)
@if(isset($sub->variantimages['image2']))
@endif
@else
@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 }} @elseSelling 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)) }} |
@php
$var_name_count = count($sub['main_attr_id']);
$name;
$var_name;
$newarr = array();
for($i = 0; $i<$var_name_count; $i++){
$var_id =$sub['main_attr_id'][$i];
$var_name[$i] = $sub['main_attr_value'][$var_id];
$name[$i] = App\ProductAttributes::where('id',$var_id)->first();
}
try{
$url = url('/details/').'/'.$pro->id.'?'.$name[0]['attr_name'].'='.$var_name[0].'&'.$name[1]['attr_name'].'='.$var_name[1];
}catch(Exception $e)
{
$url = url('/details/').'/'.$pro->id.'?'.$name[0]['attr_name'].'='.$var_name[0];
}
@endphp
{{ __("View product")}}
{{ __(" Edit ")}}
{{ __("Delete")}}
|