I know that teaching is beyond your scope of support. But from yesterday there are matches and either one field is displayed to me, and then all empty fields, or I have duplicate fields.
Please, if you can still help me write an example.
<?php foreach ($tickets as $ticket): ?>
<p align="right"><span style="font-size: 15px">Customer:</span></p>
<table border="1" align=right>
<tr>
<td><?php echo $hesklang['name']; ?>:</td>
<td><?php echo $ticket['name']; ?></td>
</tr>
<tr>
<td><?php echo $hesklang['email']; ?>:</td>
<td><?php echo $ticket['email']; ?></td>
</tr>
<?php foreach ($ticket['custom_fields'][2] as $customField[2]): ?>
<tr>
<td><?php echo $ticket['custom_fields'][2]['name']; ?></td>
<td><?php echo $ticket['custom_fields'][2]['value']; ?></td>
</tr>
<?php endforeach; ?>
<tr>
<td><?php echo $hesklang['trackID']; ?>:</td>
<td><?php echo $ticket['trackid']; ?></td>
</tr>
<tr>
<td><?php echo $hesklang['subject']; ?>:</td>
<td><b><?php echo $ticket['subject']; ?></b></td>
</tr>