@@ -25,49 +25,42 @@ class="link-primary fw-semibold text-decoration-none text-end">
25
25
<div class =" d-flex flex-column" >
26
26
@foreach ($notifications as $notification )
27
27
<div id =" @domid ($notification )"
28
- @class ([
29
- ' list-group-item' ,
30
- ' rounded' ,
31
- ' hotwire-frame' ,
32
- ' p-3' ,
33
- ' text-balance' ,
34
- ' mb-3' => ! $loop -> last ,
35
- ' bg-body-secondary' => $notification -> read (),
36
- ' text-muted ' => $notification -> read (),
37
- ] )>
28
+ @class ([
29
+ ' list-group-item' ,
30
+ ' rounded' ,
31
+ ' hotwire-frame' ,
32
+ ' p-3' ,
33
+ ' text-balance' ,
34
+ ' mb-3' => ! $loop -> last ,
35
+ ' bg-body-secondary' => $notification -> read (),
36
+ ' opacity-50 ' => $notification -> read (),
37
+ ] )>
38
38
39
39
<div class =" d-flex align-items-center" >
40
40
<div class =" avatar avatar-sm me-3" >
41
41
@isset ($notification -> data [' img' ] )
42
42
<img class =" avatar-img rounded-circle" src =" {{ $notification -> data [' img' ]} }" >
43
43
@else
44
- <img class =" avatar-img rounded-circle" src =" {{ asset (' img/notification_logo.svg' ) } }" >
44
+ <img class =" avatar-img rounded-circle"
45
+ src =" {{ asset (' img/notification_logo.svg' ) } }" >
45
46
@endif
46
47
</div >
47
48
<div >
48
- @if (isset ($notification -> data [' type' ] ) && $notification -> data [' type' ] == \App \Casts \NotificationTypeEnum:: ReplyComment -> value )
49
+ @if (isset ($notification -> data [' type' ] ) && $notification -> data [' type' ] == \App \Models \ Enums \NotificationTypeEnum:: ReplyComment -> value )
49
50
<span class =" fw-semibold" >{{ $notification -> data [' author' ]} } </span >
50
51
{{ $notification -> data [' title' ]} }
51
52
@isset ($notification -> data [' action' ] )
52
53
<a class =" link-body-emphasis stretched-link fw-semibold text-decoration-none"
53
54
href =" {{ route (' profile.notifications.read' ,$notification )} }" >
54
- @isset ($notification -> data [' action_text' ] )
55
- {{ $notification -> data [' action_text' ] } }
56
- @else
57
- Перейти
58
- @endif
55
+ {{ $notification -> data [' action_text' ] ?? ' Перейти' } }
59
56
</a >
60
57
@endif
61
58
@else
62
59
{{ $notification -> data [' title' ]} }
63
60
@isset ($notification -> data [' action' ] )
64
61
<a class =" link-body-emphasis stretched-link fw-semibold text-decoration-none text-primary"
65
62
href =" {{ route (' profile.notifications.read' ,$notification )} }" >
66
- @isset ($notification -> data [' action_text' ] )
67
- {{ $notification -> data [' action_text' ] } }
68
- @else
69
- Перейти
70
- @endif
63
+ {{ $notification -> data [' action_text' ] ?? ' Перейти' } }
71
64
</a >
72
65
@endif
73
66
0 commit comments