@component('mail::message') @component('mail::button', ['url' => '#']) {{ __('Order') }} {{ __('#') }}{{$inv_cus->order_prefix.$neworder->order_id}} @endcomponent

{{ __('Order #') }}{{ $inv_cus->order_prefix.$neworder->order_id }} {{ __('placed successfully !') }}


{{ __('Order Date') }} {{ __('Pay Method') }} {{ __('TXN ID') }}
{{ date('d/m/Y',strtotime($neworder->created_at)) }}
{{ $neworder->payment_method }}
{{ $neworder->transaction_id }}


@foreach($neworder->invoices as $invoice) @if(isset($invoice->variant)) @endif @if(isset($invoice->simple_product)) @endif @endforeach
{{ __('Product Detail') }} {{ __('Qty') }} {{ __('Subtotal') }}
@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}} {{ $invoice->simple_product->thumbnail }} {{ $invoice->simple_product->product_name }} {{ $invoice->qty }} {{ $paidcurrency }} {{ round($invoice->qty*$invoice->price+$invoice->tax_amount+$invoice->shipping,2) }}

{{ __('Handling Charge:') }} {{ $paidcurrency }} + {{ $neworder->handlingcharge ? $neworder->handlingcharge : "0.00" }}
{{ __('Coupon Discount:') }} {{ $paidcurrency }} - {{ sprintf("%.2f",$neworder->discount) }}
{{ __('Grand Total:') }} {{ $paidcurrency }} @if($neworder->discount != 0 ) {{ ($neworder->order_total-$neworder->discount)+$neworder->handlingcharge }} @else {{ $neworder->order_total+$neworder->handlingcharge }}@endif

{{ __('Thanks,') }}

{{ config('app.name') }}



{{ __('This is system generated mail please do not replay to this mail.') }} @endcomponent