Created
April 25, 2020 18:17
-
-
Save jongravois/3e17cade3ded1d4aa670132dc7eb6dca to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<div> | |
<div class="mb-2 px-4 py-2 flex justify-between items-center rounded border border-silver-700"> | |
<div class="flex"> | |
<span class="flex"> | |
{{$task['title']}} | |
</span> | |
</div> | |
<div class="flex"> | |
<div class="cursor-pointer mr-4" | |
tooltip="Add to Group" | |
wire:click="$toggle('expanded')"> | |
@svg('solid/arrow-right', 'text-green-500') | |
</div> | |
<div class="cursor-pointer" | |
wire:click="deleteTask({{$task['id']}})"> | |
@svg('solid/times', 'text-red-500') | |
</div> | |
</div> | |
</div> | |
@if($expanded) | |
<div class="p-4 flex justify-between items-center"> | |
<select name="groupID" class="tw-select" | |
wire:model="task.group_id"> | |
<option value="">Select ...</option> | |
@forelse($groups as $group) | |
<option value="{{$group['id']}}"> | |
{{$group['title']}} | |
</option> | |
@empty | |
<option value="">No groups found</option> | |
@endforelse | |
</select> | |
<div class="tw-inline-button inline-green" | |
wire-click="addToGroup"> | |
Send | |
</div> | |
</div> | |
@endif | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment