{{$invoicecount}}

Products

@convert(\DB::table('loyalty_points')->where('customer_id', $customer->id)->sum('increase')) Total Loyalty Earned

{{$ordercount}}

Orders

@convert(\DB::table('loyalty_points')->where('customer_id', $customer->id)->sum('decrease')) Total Loyalty Redeemed

{{empty($app->currency) ? "GHS" : $app->currency}}@convert($ordersRevenue)

Total Amount Spent

@convert(\DB::table('loyalty_points')->where('customer_id', $customer->id)->sum('increase') - \DB::table('loyalty_points')->where('customer_id', $customer->id)->sum('decrease')) Loyalty balance