@if(isset($invoice->variant))
@php
$orivar = $invoice->variant;
$varcount = count($orivar->main_attr_value);
$i=0;
$var_name_count = count($orivar['main_attr_id']);
unset($name);
$name = array();
$var_name;
$newarr = array();
for($i = 0; $i<$var_name_count; $i++){
$var_id =$orivar['main_attr_id'][$i];
$var_name[$i] = $orivar['main_attr_value'][$var_id];
$name[$i] = App\ProductAttributes::where('id',$var_id)->first();
}
try{
$url = url('details').'/'.$orivar->products->id.'?'.$name[0]['attr_name'].'='.$var_name[0].'&'.$name[1]['attr_name'].'='.$var_name[1];
}catch(Exception $e)
{
$url = url('details').'/'.$orivar->products->id.'?'.$name[0]['attr_name'].'='.$var_name[0];
}
@endphp
|
{{$orivar->products->name}}
(@foreach($orivar->main_attr_value as $key=> $orivars)
@php
$getattrname = App\ProductAttributes::where('id',$key)->first()->attr_name;
$getvarvalue = App\ProductValues::where('id',$orivars)->first();
@endphp
@if($i < $varcount)
@if(strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null)
@if($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour")
{{ $getvarvalue->values }},
@else
{{ $getvarvalue->values }}{{ $getvarvalue->unit_value }},
@endif
@else
{{ $getvarvalue->values }},
@endif
@else
@if(strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null)
@if($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour")
{{ $getvarvalue->values }}
@else
{{ $getvarvalue->values }}{{ $getvarvalue->unit_value }}
@endif
@else
{{ $getvarvalue->values }}
@endif
@endif
@endforeach
)
{{ __('Sold By:') }} {{$orivar->products->store->name}}
|
@endif
@if(isset($invoice->simple_product))
|
{{ $invoice->simple_product->product_name }}
|
@endif
{{ $invoice->qty }}
|
{{ $paidcurrency }} {{ round($invoice->qty*$invoice->price+$invoice->tax_amount+$invoice->shipping,2) }}
|
@endforeach