Skip to content

Commit 35171d7

Browse files
committed
panel - bug fix in comment approval pacge
1 parent 0257d4a commit 35171d7

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
Easily add a wordpress functionality and CMS to your laravel web application.
1818

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 ;)
2020

2121
## [Let's try it - Online Demo](https://cms.binshops.com)
2222
You can try Hessam CMS online: [https://cms.binshops.com](https://cms.binshops.com)

src/Views/hessamcms_admin/comments/index.blade.php

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,28 @@
55

66
<div class="card m-4" >
77
<div class="card-body">
8-
98
<h5 class='card-title'>
10-
11-
129
{{$comment->author()}} commented on:
1310

1411
@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
1714
Unknown blog post
18-
19-
@endif
15+
@endif
2016

2117
on {{$comment->created_at}} </h5>
22-
23-
2418
<p class='m-3 p-2'>{{$comment->comment}}</p>
2519

26-
27-
28-
2920
@if($comment->post)
30-
3121
{{--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>
3424
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">
3626
<i class="fa fa-pencil-square-o" aria-hidden="true"></i>
3727
Edit Post</a>
38-
39-
4028
@endif
4129

42-
43-
4430
@if(!$comment->approved)
4531
{{--APPROVE BUTTON--}}
4632
<form method='post' action='{{route("hessamcms.admin.comments.approve", $comment->id)}}' class='float-right'>
@@ -61,14 +47,12 @@
6147
</div>
6248
</div>
6349

64-
6550
@empty
6651
<div class='alert alert-danger'>None found</div>
6752
@endforelse
6853

69-
7054
<div class='text-center'>
7155
{{$comments->appends( [] )->links()}}
7256
</div>
7357

74-
@endsection
58+
@endsection

0 commit comments

Comments
 (0)