Debian Codegraph @

lib/3rdParty/composer/webklex/php-imap/examples/message_table.blade.php

raw symbols SCIP
1 <?php
2 /*
3 * File: message_table.blade.php
4 * Category: View
5 * Author: M.Goldenbaum
6 * Created: 15.09.18 19:53
7 * Updated: -
8 *
9 * Description:
10 * -
11 */
12
13 /**
14 * @var \Webklex\PHPIMAP\Support\FolderCollection $paginator
15 * @var \Webklex\PHPIMAP\Message $message
16 */
17
18 ?>
19 <table>
20 <thead>
21 <tr>
22 <th>UID</th>
23 <th>Subject</th>
24 <th>From</th>
25 <th>Attachments</th>
26 </tr>
27 </thead>
28 <tbody>
29 <?php if($paginator->count() > 0): ?>
30 <?php foreach($paginator as $message): ?>
31 <tr>
32 <td><?php echo $message->getUid(); ?></td>
33 <td><?php echo $message->getSubject(); ?></td>
34 <td><?php echo $message->getFrom()[0]->mail; ?></td>
35 <td><?php echo $message->getAttachments()->count() > 0 ? 'yes' : 'no'; ?></td>
36 </tr>
37 <?php endforeach; ?>
38 <?php else: ?>
39 <tr>
40 <td colspan="4">No messages found</td>
41 </tr>
42 <?php endif; ?>
43 </tbody>
44 </table>
45
46 <?php echo $paginator->links(); ?>