@extends('admin.layouts.sellermastersoyuz') @section('title',__('Dashboard')) @section('body')
@if(Module::has('SellerSubscription') && Module::find('SellerSubscription')->isEnabled())

{{ __("Current Subscription") }}

{{ __("Plan Name:") }} {{ !empty(auth()->user()->activeSubscription->plan) ? auth()->user()->activeSubscription->plan->name : __("seller.Plan not found !") }}
{{ __("Product Upload Limit:") }} {{ !empty(auth()->user()->activeSubscription->plan) ? auth()->user()->products()->count().' / '.auth()->user()->activeSubscription->plan->product_create : __("seller.Plan not found !") }}
{{ __("Expires ON:") }} {{ !empty(auth()->user()->activeSubscription) ? date('d/m/Y h:i A',strtotime(auth()->user()->activeSubscription->end_date)) : __("seller.Not found !")}}
{{ __("CSV Product Upload:") }} {{ !empty(auth()->user()->activeSubscription->plan) && auth()->user()->activeSubscription->plan->csv_product ? __("seller.YES") : __("seller.NO")}}
@endif

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

{{__('Total products')}}

{{count($orders)}}

{{__("Total orders")}}

{{ $totalcanorders }}

{{__("Total canceled orders")}}

{{ $totalreturnorders }}

{{__('Total returned orders')}}

{{ $money }}

{{__("Total earnings")}}

{{ $payouts }}

{{__("Received payouts")}}

{!! $sellerorders->container() !!}
{{__("Latest Orders")}}
@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
# {{ __("Order ID") }} {{ __("Customer name") }} {{ __("Qty") }} {{ __("Price") }} {{ __('Date') }}
{{$key+1}} #{{ !empty($order->order_id) ? $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)
{{ __("Recently Added Products") }}
@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