@extends('admin.layouts.sellermastersoyuz') @section('title',__('Dashboard')) @section('body')

{{ count($products) + count($simple_products) }}

{{__('staticwords.TotalArtworks')}}

{{count($orders)}}

{{__("staticwords.TotalOrders")}}

{{ $totalcanorders }}

{{__("staticwords.TotalCanceledOrders")}}

{{ $totalreturnorders }}

{{__('staticwords.TotalReturnedOrders')}}

{{ $money }}

{{__("staticwords.TotalEarnings")}}

{!! $sellerorders->container() !!}
{{__("staticwords.LatestOrders")}}
@foreach($orders as $key=> $order) @php $x = App\InvoiceDownload::where('order_id','=',$order->id)->where('vender_id',auth()->id())->get(); $total = 0; $qty = $x->sum('qty'); foreach ($x as $value) { $total = $total+$value->qty*$value->price+$value->tax_amount+$value->shipping; } @endphp @endforeach
# {{ __("staticwords.OrderID") }} {{ __("staticwords.CustomerName") }} {{ __("staticwords.qty") }} {{ __("staticwords.Price") }} {{ __('staticwords.Date') }}
{{$key+1}} #{{ $inv_cus->order_prefix.$order->order_id }} {{ $order->user->name }} {{ $qty }} {{ $total }} {{ date('d-M-Y',strtotime($order->created_at)) }}
{!! $sellerpayoutdata->container() !!}
@if($dashsetting->rct_pro ==1)
{{ __("staticwords.RecentlyAddedArtworks") }}
@foreach($products->take($dashsetting->max_item_pro) as $pro) @foreach($pro->subvariants as $key=> $sub) @if($sub->def == 1) @php $var_name_count = count($sub['main_attr_id']); $name = array(); $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
@if(count($pro->subvariants)>0) @if($sub->variantimages) {{ $sub->variantimages['main_image'] }} @else @endif @endif
{{ $pro->name }}
{{ substr(strip_tags($pro->des),0,150)}}{{strlen(strip_tags($pro->des))>150 ? "..." : "" }}
@if($pro->vender_offer_price !=null) {{ $pro->price_in }} {{ $pro->vender_offer_price+$sub->price }} @else {{ $pro->price_in }} {{ $pro->vender_price+$sub->price }} @endif
@endif @endforeach @endforeach
@endif
{!! $piechart->container() !!}
@endsection @section('custom-script') {!! $sellerorders->script() !!} {!! $sellerpayoutdata->script() !!} {!! $piechart->script() !!} @endsection