forked from monicahq/monica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_monthReminder.blade.php
30 lines (26 loc) · 1.31 KB
/
_monthReminder.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@foreach($reminderOutboxesList as $month => $reminderOutboxes)
<h3 class="ttu fw5 f5 pb2">{{ \App\Helpers\DateHelper::getMonthAndYear($month) }}</h3>
<ul class="mb4">
@if(count($reminderOutboxes) > 0)
@foreach($reminderOutboxes as $reminderOutbox)
@if (!is_object($reminderOutbox->reminder))
@continue;
@endif
<li class="pb2">
<span class="ttu f6 mr2 black-60">{{ \App\Helpers\DateHelper::getShortDateWithoutYear($reminderOutbox->planned_date) }}</span>
<span>
@if ($reminderOutbox->reminder->contact->is_partial)
@php($relatedRealContact = $reminderOutbox->reminder->contact->getRelatedRealContact())
<a href="{{ route('people.show', $relatedRealContact) }}">{{ $relatedRealContact->getNameAttribute() }}</a>
@else
<a href="{{ route('people.show', $reminderOutbox->reminder->contact) }}">{{ $reminderOutbox->reminder->contact->getIncompleteName() }}</a>
@endif
</span>
{{ $reminderOutbox->reminder->title }}
</li>
@endforeach
@else
<p>{{ trans('dashboard.reminders_none') }}</p>
@endif
</ul>
@endforeach