Files
eatvio-infra/resources/views/livewire/plan/comment/upvote.blade.php
Anatoliy Poloz a9601ab15d eating plan added
2022-07-27 14:53:16 +00:00

20 lines
738 B
PHP

<div class="d-flex align-items-center ms-3 ms-sm-0 mt-sm-4">
<button wire:click.stop.prevent="downvote" @class(["pt-1", 'text-red-400' => $isDownVoted])>
<svg width="20" height="18" @class(["me-1", "down-vote-filter" => $isDownVoted])><use xlink:href="#DislikeIcon"></use></svg>
</button>
<span class="--f_bold">{{ $sum }}</span>
<button
wire:click.stop.prevent="upvote"
@class(
[
"pt-1",
'text-teal-400' => $isUpVoted,
'hover:text-teal-500' => $isUpVoted
]
)
>
<svg width="20" height="24" @class(["ms-1", "up-vote-filter" => $isUpVoted])><use xlink:href="#LikeIcon"></use></svg>
</button>
</div>