You can use the array_combine php function
<p style="font-size:15.5px; color:black; font-weight:900;">
@foreach(array_combine(explode(',', $stock->time_frame), explode(',', $stock->signal)) as $key => $value)
{{ $key }}: {{ $value}}
@unless($loop->last)
<br /> <span style="padding-left:10px;">+</span> <br />
@endunless
@foreach
</p>
The $loop variable is available inside the @foreach loop and provides helpers values to handle edge cases such as first iteration, last iteration, etc. Please refer the docs for more about it:
https://laravel.com/docs/6.x/blade#the-loop-variable
I recall in the last thread we used str_replace, but in that case you didn't have to combine both arrays. If you want to do that in one line you can try:
{!! str_replace('+', '<br /> <span style="padding-left:10px;">+</span> <br />', implode('+', array_map(function ($value, $key) { return "{$key}: {$value}"; }, array_combine(explode(',', $stock->time_frame), explode(',', $stock->signal))))) !!}
But I think the first option is more readable and easier to mantain