@php $todaySale = \App\Order::where('date', '>', strtotime(\Carbon\Carbon::today()))->get()->sum('grand_total'); $Todaytotalcoupon = \App\Order::where('date', '>', strtotime(\Carbon\Carbon::today()))->get()->sum('coupon_discount'); @endphp

Today's Sale

{{single_price($todaySale + $Todaytotalcoupon)}}


@php $totalOrder24 = DB::table('orders')->where('date', '>', strtotime(\Carbon\Carbon::today())) ->count(); @endphp

Today's Order

{{ $totalOrder24 }}


@php $totalOrder = DB::table('orders') ->distinct('id') ->count(); @endphp

Total Order

{{$totalOrder}}


@php $totalSale = \App\Order::where('payment_type', '!=','letzpay')->get()->sum('grand_total'); $totalcoupon = \App\Order::where('payment_type', '!=','letzpay')->get()->sum('coupon_discount'); $oldSale = "2928046.72"; @endphp

Gross Sale

{{single_price($totalSale + $oldSale + $totalcoupon)}}


Total Product

{{ \App\Product::where('published', 1)->get()->count() }}