-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sortable Admin Awards (with User Details) (#1701)
* Model, Controller, Blade changes sortable results with award users display * StyleCI Fix --------- Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,8 @@ class Award extends Model | |
'id', | ||
'name', | ||
'description', | ||
'active', | ||
'created_at', | ||
]; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<table class="table table-striped table-responsive" id="owners-table"> | ||
<thead> | ||
<th>@sortablelink('user.name', 'User')</th> | ||
<th>@sortablelink('created_at', 'Issued At')</th> | ||
<th> </th> | ||
</thead> | ||
<tbody> | ||
@foreach($owners as $ow) | ||
<tr> | ||
<td> | ||
@if(filled($ow->user)) | ||
<a href="{{ route('admin.users.edit', [$ow->user->id]) }}">{{ $ow->user->name_private.' ('.$ow->user->ident.')' }}</a> | ||
@else | ||
Deleted User | ||
@endif | ||
</td> | ||
<td>{{ $ow->created_at->format('d.M.Y H:i') }}</td> | ||
<td> </td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters