Skip to content

Commit 44145bd

Browse files
committed
Missing blade template
1 parent 7db6038 commit 44145bd

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

resources/views/profile/notifications.blade.php

+15-22
Original file line numberDiff line numberDiff line change
@@ -25,49 +25,42 @@ class="link-primary fw-semibold text-decoration-none text-end">
2525
<div class="d-flex flex-column">
2626
@foreach($notifications as $notification)
2727
<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+
])>
3838

3939
<div class="d-flex align-items-center">
4040
<div class="avatar avatar-sm me-3">
4141
@isset($notification->data['img'])
4242
<img class="avatar-img rounded-circle" src="{{$notification->data['img']}}">
4343
@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') }}">
4546
@endif
4647
</div>
4748
<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)
4950
<span class="fw-semibold">{{$notification->data['author']}}</span>
5051
{{$notification->data['title']}}
5152
@isset($notification->data['action'])
5253
<a class="link-body-emphasis stretched-link fw-semibold text-decoration-none"
5354
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'] ?? 'Перейти' }}
5956
</a>
6057
@endif
6158
@else
6259
{{$notification->data['title']}}
6360
@isset($notification->data['action'])
6461
<a class="link-body-emphasis stretched-link fw-semibold text-decoration-none text-primary"
6562
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'] ?? 'Перейти' }}
7164
</a>
7265
@endif
7366

0 commit comments

Comments
 (0)