Skip to content

Commit f301c58

Browse files
committed
Example message table view added
1 parent 156daea commit f301c58

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

examples/message_table.blade.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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\IMAP\Support\MessageCollection $paginator
15+
* @var \Webklex\IMAP\Message $oMessage
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+
@if($paginator->count() > 0)
30+
@foreach($paginator as $oMessage)
31+
<tr>
32+
<td>{{$oMessage->getUid()}}</td>
33+
<td>{{$oMessage->getSubject()}}</td>
34+
<td>{{$oMessage->getFrom()[0]->mail}}</td>
35+
<td>{{$oMessage->getAttachments()->count() > 0 ? 'yes' : 'no'}}</td>
36+
</tr>
37+
@endforeach
38+
@else
39+
<tr>
40+
<td colspan="4">No messages found</td>
41+
</tr>
42+
@endif
43+
</tbody>
44+
</table>
45+
46+
{{$paginator->links()}}

0 commit comments

Comments
 (0)