[0924b6c] | 1 | @extends("layouts.dashboard")
|
---|
| 2 |
|
---|
| 3 | @section("title", "Comments - Dashboard | TechnoBlog")
|
---|
| 4 |
|
---|
| 5 | @section("dashboard_content")
|
---|
| 6 |
|
---|
| 7 | <div class="my-3 my-md-5">
|
---|
| 8 |
|
---|
| 9 | <div class="container">
|
---|
| 10 |
|
---|
| 11 | <div class="page-header">
|
---|
| 12 | <h1 class="page-title">Comments</h1>
|
---|
| 13 | </div>
|
---|
| 14 |
|
---|
| 15 | <div class="row">
|
---|
| 16 |
|
---|
| 17 | <div class="col-sm-12">
|
---|
| 18 | <div class="card">
|
---|
| 19 |
|
---|
| 20 | <div class="card-header">
|
---|
| 21 | <h3 class="card-title">List of comments</h3>
|
---|
| 22 | </div>
|
---|
| 23 |
|
---|
| 24 | <div class="table-responsive pt-5 pb-5">
|
---|
| 25 |
|
---|
| 26 | <table id="dttable" class="table" style="width:100%">
|
---|
| 27 | <thead>
|
---|
| 28 | <tr>
|
---|
| 29 | <th class="text-center">Name</th>
|
---|
| 30 | <th class="text-center">Email</th>
|
---|
| 31 | <th class="text-center">Created Date</th>
|
---|
| 32 | <th class="text-center">Status</th>
|
---|
| 33 | <th class="text-center">Actions</th>
|
---|
| 34 | </tr>
|
---|
| 35 | </thead>
|
---|
| 36 | <tbody>
|
---|
| 37 | @foreach ($comments as $comment)
|
---|
| 38 | <tr>
|
---|
| 39 | <td>{{ $comment->name }}</td>
|
---|
| 40 | <td>{{ $comment->email }}</td>
|
---|
| 41 | <td>{{ date('d.m.Y', strtotime($comment->created_at)) }}</td>
|
---|
| 42 | <td>
|
---|
| 43 | @if ($comment->is_active)
|
---|
| 44 | Confirmed
|
---|
| 45 | @else
|
---|
| 46 | Not confirmed yet
|
---|
| 47 | @endif
|
---|
| 48 | </td>
|
---|
| 49 | <td class="text-center">
|
---|
| 50 | <div class="item-action dropdown">
|
---|
| 51 | <a href="javascript:void(0)" data-toggle="dropdown" class="icon" aria-expanded="false"><i class="fe fe-more-vertical"></i></a>
|
---|
| 52 | <div class="dropdown-menu dropdown-menu-right" x-placement="bottom-end" style="position: absolute; transform: translate3d(15px, 20px, 0px); top: 0px; left: 0px; will-change: transform;">
|
---|
| 53 | <a href="{{ route("blog.post", ["category" => strtolower($comment->post->category->name), "slug" => $comment->post->slug]) }}" target="_blank" class="dropdown-item"><i class="dropdown-icon fe fe-file-text"></i> View Post </a>
|
---|
| 54 |
|
---|
| 55 | @if (!$comment->is_active)
|
---|
| 56 | <a href="javascript:void(0)" class="actionLink dropdown-item" style="cursor: pointer;" data-action="{{ route("dashboard.comments.confirm", ["id" => $comment->id]) }}" data-method="patch"><i class="dropdown-icon fe fe-check"></i> Confirm </a>
|
---|
| 57 | @endif
|
---|
| 58 |
|
---|
| 59 | <div class="dropdown-divider"></div>
|
---|
| 60 | <a href="javascript:void(0)" class="actionLink dropdown-item" style="cursor: pointer;" data-action="{{ route("dashboard.comments.destroy", ["id" => $comment->id]) }}" data-method="delete"><i class="dropdown-icon fe fe-trash-2 text-danger"></i> Delete </a>
|
---|
| 61 | </div>
|
---|
| 62 | </div>
|
---|
| 63 | </td>
|
---|
| 64 | </tr>
|
---|
| 65 | @endforeach
|
---|
| 66 | </tbody>
|
---|
| 67 | </table>
|
---|
| 68 |
|
---|
| 69 | </div>
|
---|
| 70 |
|
---|
| 71 | </div>
|
---|
| 72 |
|
---|
| 73 | </div>
|
---|
| 74 |
|
---|
| 75 | </div>
|
---|
| 76 |
|
---|
| 77 | </div>
|
---|
| 78 |
|
---|
| 79 | </div>
|
---|
| 80 |
|
---|
| 81 | @endsection
|
---|