File tree Expand file tree Collapse file tree 2 files changed +8
-24
lines changed Expand file tree Collapse file tree 2 files changed +8
-24
lines changed Original file line number Diff line number Diff line change 16
16
17
17
Easily add a wordpress functionality and CMS to your laravel web application.
18
18
19
- ### Let's give star to this repository - Your support motivates me to develop this package much more ;)
19
+ ### Your support motivates me to develop this package much more - Let's give a star ;)
20
20
21
21
## [ Let's try it - Online Demo] ( https://cms.binshops.com )
22
22
You can try Hessam CMS online: [ https://cms.binshops.com ] ( https://cms.binshops.com )
Original file line number Diff line number Diff line change 5
5
6
6
<div class =" card m-4" >
7
7
<div class =" card-body" >
8
-
9
8
<h5 class =' card-title' >
10
-
11
-
12
9
{{ $comment -> author ()} } commented on:
13
10
14
11
@if ($comment -> post )
15
- <a class =" a-link-cart-color" href =' {{ $comment -> post -> url ()} }' >{{ $comment -> post -> title } } </a >
16
- @else
12
+ <a class =" a-link-cart-color" href =' {{ $comment -> post -> postTranslations () -> get ()[ 0 ] -> url (app ( ' request ' ) -> get ( ' locale ' ) )} }' >{{ $comment -> post -> title } } </a >
13
+ @else
17
14
Unknown blog post
18
-
19
- @endif
15
+ @endif
20
16
21
17
on {{ $comment -> created_at } } </h5 >
22
-
23
-
24
18
<p class =' m-3 p-2' >{{ $comment -> comment } } </p >
25
19
26
-
27
-
28
-
29
20
@if ($comment -> post )
30
-
31
21
{{-- VIEW + EDIT POST LINKS--}}
32
- <a href =" {{ $comment -> post -> url () } } " class =" card-link btn btn-outline-secondary" ><i class =" fa fa-file-text-o"
33
- aria-hidden =" true" ></i >
22
+ <a href =' {{ $comment -> post -> postTranslations () -> get ()[ 0 ] -> url (app ( ' request ' ) -> get ( ' locale ' )) } } ' class =" card-link btn btn-outline-secondary" ><i class =" fa fa-file-text-o"
23
+ aria-hidden =" true" ></i >
34
24
View Post</a >
35
- <a href =" {{ $comment -> post -> edit_url ()} }" class =" card-link btn btn-primary" >
25
+ <a href =' {{ $comment -> post -> postTranslations () -> get ()[ 0 ] -> edit_url ()} }' class =" card-link btn btn-primary" >
36
26
<i class =" fa fa-pencil-square-o" aria-hidden =" true" ></i >
37
27
Edit Post</a >
38
-
39
-
40
28
@endif
41
29
42
-
43
-
44
30
@if (! $comment -> approved )
45
31
{{-- APPROVE BUTTON--}}
46
32
<form method =' post' action =' {{ route (" hessamcms.admin.comments.approve" , $comment -> id )} }' class =' float-right' >
61
47
</div >
62
48
</div >
63
49
64
-
65
50
@empty
66
51
<div class =' alert alert-danger' >None found</div >
67
52
@endforelse
68
53
69
-
70
54
<div class =' text-center' >
71
55
{{ $comments -> appends ( [] )-> links ()} }
72
56
</div >
73
57
74
- @endsection
58
+ @endsection
You can’t perform that action at this time.
0 commit comments