Debian Codegraph @

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

raw symbols SCIP
1 <?php
2 /*
3 * File: folder_structure.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\Folder $folder
16 */
17
18 ?>
19 <table>
20 <thead>
21 <tr>
22 <th>Folder</th>
23 <th>Unread messages</th>
24 </tr>
25 </thead>
26 <tbody>
27 <?php if($paginator->count() > 0): ?>
28 <?php foreach($paginator as $folder): ?>
29 <tr>
30 <td><?php echo $folder->name; ?></td>
31 <td><?php echo $folder->search()->unseen()->setFetchBody(false)->count(); ?></td>
32 </tr>
33 <?php endforeach; ?>
34 <?php else: ?>
35 <tr>
36 <td colspan="4">No folders found</td>
37 </tr>
38 <?php endif; ?>
39 </tbody>
40 </table>
41
42 <?php echo $paginator->links(); ?>