@if(env('ENABLE_SELLER_SUBS_SYSTEM') == 1)
{{ __("Plan Name:") }} {{ auth()->user()->activeSubscription->plan ? auth()->user()->activeSubscription->plan->name : __("Plan not found !") }}
{{ __("Product Upload Limit:") }} {{ auth()->user()->activeSubscription->plan ? (auth()->user()->products()->count() + auth()->user()->store->simple_products->count()).' / '.auth()->user()->activeSubscription->plan->product_create : __("Plan not found !") }}
{{ __("Expires ON:") }} {{ auth()->user()->activeSubscription ? date('d/m/Y h:i A',strtotime(auth()->user()->activeSubscription->end_date)) : __("Not found !")}}
{{ __("CSV Product Upload:") }} {{ auth()->user()->activeSubscription->plan && auth()->user()->activeSubscription->plan->csv_product ? __("YES") : __("NO")}}
@endif
{{ count($products) + count($simple_products) }}
{{__('Total Products')}}
{{count($orders)}}
{{__("Total Orders")}}
{{ $totalcanorders }}
{{__("Total Canceled Orders")}}
{{ $totalreturnorders }}
{{__('Total Returned Orders')}}
{{ $payouts }}
{{__("Received Payouts")}}
{{ $money }}
{{__("Total Earning")}}
{!! $sellerorders->container() !!}
# |
{{ __("Order ID") }} |
{{ __("Customer name") }} |
{{ __("Qty") }} |
{{ __("Price") }} |
{{ __('Date') }} |
@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
{{$key+1}} |
#{{ $inv_cus->order_prefix.$order->order_id }}
|
{{ $order->user->name }} |
{{ $qty }} |
{{ $total }} |
{{ date('d-M-Y',strtotime($order->created_at)) }} |
@endforeach
@if($dashsetting->rct_pro ==1)
@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)
@else
@endif
@endif
@endif
@endforeach
@endforeach
@endif
{!! $piechart->container() !!}
{!! $sellerpayoutdata->container() !!}