|
1 | 1 | @if($notification->type === 'App\Notifications\HolidayAdded')
|
2 |
| - <a class="dropdown-item" href="{{ url('holidays', $notification->data['id']) }}"> |
3 |
| - <div class="notification__icon-wrapper"> |
4 |
| - <div class="notification__icon"> |
5 |
| - <i class="far fa-snowflake"></i> |
6 |
| - </div> |
7 |
| - </div> |
| 2 | + <a href="{{ url('holidays', $notification->data['id']) }}"> |
8 | 3 | <div class="notification__content">
|
9 | 4 | <span class="notification__category">Holiday Alert</span>
|
10 | 5 | <p>We have Holiday for {{ array_get($notification->data, 'title') }} from
|
|
13 | 8 | </p>
|
14 | 9 | </div>
|
15 | 10 | </a>
|
16 |
| -@endif |
17 |
| - |
18 |
| -@if($notification->type === 'App\Notifications\LeaveApproval') |
19 |
| - <a class="dropdown-item" href="{{ url('leaves', $notification->data['id']) }}"> |
20 |
| - <div class="notification__icon-wrapper"> |
21 |
| - <div class="notification__icon"> |
22 |
| - <i class="far fa-snowflake"></i> |
23 |
| - </div> |
| 11 | +@elseif($notification->type === 'App\Notifications\LeaveRequested') |
| 12 | + <a href="{{ url('leaves', $notification->data['id']) }}"> |
| 13 | + <div class="notification__content"> |
| 14 | + <span class="notification__category">Leave Request</span> |
| 15 | + <p>Your have requestd for leave for {{ array_get($notification->data, 'subject') }} from |
| 16 | + <span class="text-success text-semibold">{{ array_get($notification->data, 'start_date') }}</span> To |
| 17 | + <span class="text-success text-semibold">{{ array_get($notification->data, 'end_date') }}</span> |
| 18 | + </p> |
24 | 19 | </div>
|
| 20 | + </a> |
| 21 | +@elseif($notification->type === 'App\Notifications\LeaveApproval') |
| 22 | + <a href="{{ url('leaves', $notification->data['id']) }}"> |
25 | 23 | <div class="notification__content">
|
26 | 24 | <span class="notification__category">Leave Approval Alert</span>
|
27 | 25 | <p>Your Leave request for {{ array_get($notification->data, 'subject') }} from
|
|
0 commit comments