@extends('vendor.includes.master-vendor') @section('content')

Vendor Dashboard!

${{round(Auth::user()->current_balance,2)}}

Current Balance!

{{\App\OrderedProducts::where('vendorid',Auth::user()->id)->where('status','completed')->count()}}

Total Item Sold!

${{round(\App\OrderedProducts::where('vendorid',Auth::user()->id)->where('paid','yes')->where('status','completed')->sum('cost'),2)}}

Total Earnings!

Shop Statistics!

{{ \App\Product::where('vendorid',Auth::user()->id)->where('status',1)->count() }}

Total Products!

View All
{{\App\OrderedProducts::where('vendorid',Auth::user()->id)->where('payment','Completed')->where('status','pending')->count() }}

Orders Pending!

View All
{{\App\OrderedProducts::where('vendorid',Auth::user()->id)->where('payment','Completed')->where('status','processing')->count() }}

Orders Processing!

View All
{{\App\OrderedProducts::where('vendorid',Auth::user()->id)->where('payment','Completed')->where('status','completed')->count() }}

Orders Completed!

View All
@stop @section('footer') @stop