Facing problem in outputting a query's result

I have a query whose result is single column and outputs array(1) { [0]=> object(stdClass)#243 (1) { ["paid_customers"]=> string(3) "350" } } Please guide me how to output that result set in laravel blade view. I have successfully sent this variable from controller by following coding

return view('employee_home')->with('paid_customers', $q1);

I try to output it with foreach in the view but the error says Undefined variable: paid_customers. Please help

Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us