This seems simple yet I'm struggling with this. I'd like to get all these data {TotalRaces} separated by a comma for a Sparkline graph, however the leading or trailing comma will either cause a value of 0 at the beginning or the end of the sparkline (for an example). Any thoughts of how to remove the first, or last, comma? I need them in between the variables but not a the beginning or end.
Appreciate any help. Thanks!!
@forelse ($pts as $p)
,{{ $p->TotalRaces }} //causes zero at beginning of sparkline
@empty
@endforelse
OR
@forelse ($pts as $p)
{{ $p->TotalRaces }}, //causes zero at end of sparkline
@empty
@endforelse