How do I: Use variables in my alert templates?

So, the default template list the admins that it send the alerts to. As I send alerts to non-users I had to create alert transports. I have tried all of the following and I cant figure out how to list the name of each of the transports. The individual loops are my attempts at the end I just want two loops.

Alert sent to:<br>
@foreach ($alert->contacts as $key => $value)
IT Hero: {{ $value }} <{{ $key }}> <br>
@endforeach

Loop1:
@foreach ($alert->transport_name as $key => $value)
Observer: {{ $value }} <{{ $key }}> <br>
@endforeach<br><br>

Loop2:
@foreach ($alert->transport_name as $key => $value)
Observer: {{ $value['string'] }} <br>
@endforeach<br><br>

Loop3:
@foreach ($alert->transport_name as $key => $value)
Observer: {{ $value['transport_name'] }}
@endforeach

Loop5:<br>
@foreach ($alert->contacts as $key => $value)
IT Hero: {{ $value }} <{{ $key }}> <br>
@endforeach

Loop6:
@foreach ($alert->transport_name as $key => $value)
Observer: {{ $value['name'] }} <br>
@endforeach<br><br>

Been trying lots of different things. I finally got to say the transport name but only on the alert that went to that specific person.

Anyway to get it to list all of the people that the alert was sent to?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.