-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
96 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<x-layouts.admin> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 leading-tight"> | ||
{{ __('All Tasks') }} | ||
</h2> | ||
</x-slot> | ||
|
||
<div class="py-12"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg"> | ||
<div class="p-6 text-gray-900"> | ||
<div class="overflow-hidden overflow-x-auto p-6 bg-white border-b border-gray-200"> | ||
<div class="min-w-full align-middle"> | ||
<table class="min-w-full divide-y divide-gray-200 border"> | ||
<thead> | ||
<tr> | ||
<th class="px-6 py-3 bg-gray-50 text-left"> | ||
<span class="text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">Name</span> | ||
</th> | ||
<th class="px-6 py-3 bg-gray-50 text-left"> | ||
<span class="text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">User</span> | ||
</th> | ||
<th class="px-6 py-3 bg-gray-50 text-left"> | ||
<span class="text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">Due Date</span> | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody class="bg-white divide-y divide-gray-200 divide-solid"> | ||
@foreach($tasks as $task) | ||
<tr class="bg-white"> | ||
<td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-900"> | ||
{{ $task->name }} | ||
</td> | ||
<td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-900"> | ||
{{ $task->user->name }} | ||
</td> | ||
<td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-900"> | ||
{{ $task->due_date }} | ||
</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</x-layouts.admin> |
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,45 @@ | ||
<x-layouts.user> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 leading-tight"> | ||
{{ __('My Tasks') }} | ||
</h2> | ||
</x-slot> | ||
|
||
<div class="py-12"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg"> | ||
<div class="p-6 text-gray-900"> | ||
<div class="overflow-hidden overflow-x-auto p-6 bg-white border-b border-gray-200"> | ||
<div class="min-w-full align-middle"> | ||
<table class="min-w-full divide-y divide-gray-200 border"> | ||
<thead> | ||
<tr> | ||
<th class="px-6 py-3 bg-gray-50 text-left"> | ||
<span class="text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">Name</span> | ||
</th> | ||
<th class="px-6 py-3 bg-gray-50 text-left"> | ||
<span class="text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">Due Date</span> | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody class="bg-white divide-y divide-gray-200 divide-solid"> | ||
@foreach($tasks as $task) | ||
<tr class="bg-white"> | ||
<td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-900"> | ||
{{ $task->name }} | ||
</td> | ||
<td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-900"> | ||
{{ $task->due_date }} | ||
</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</x-layouts.user> |