Skip to content

Commit

Permalink
enhancement that allows edit/delete of sub-collections from collectio…
Browse files Browse the repository at this point in the history
…n-management interface of admin
  • Loading branch information
shraddha404 committed Apr 1, 2024
1 parent 1aa5df8 commit cde847c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct()
}

public function index(){
$collections = Collection::where('parent_id', null)->get();
$collections = Collection::all();
return view('collectionmanagement', ['collections'=>$collections, 'activePage'=>'Collections','titlePage'=>'Collections']);
}

Expand Down
2 changes: 2 additions & 0 deletions resources/views/collectionmanagement.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function randomString(length) {
<tr>
<th>Name</th>
<th>Type</th>
<th>Parent collection</th>
<th>Created</th>
<th class="text-right">Actions</th>
</tr>
Expand All @@ -80,6 +81,7 @@ function randomString(length) {
<tr>
<td>{{ $c->name }}</td>
<td>{{ $c->type }}</td>
<td>{{ @$c->parent->name }}</td>
<td>{{ $c->created_at }}</td>
<td class="td-actions text-right">
<a rel="tooltip" class="btn btn-success btn-link" href="/admin/collection-form/{{$c->id}}">
Expand Down

0 comments on commit cde847c

Please sign in to comment.