kusowl f33f68cd3e feat(user interaction): add favorite interaction
- refactor controller to handle favorite
- show like count and update when liked a deal
- maintain like and favorite state with server
2026-01-16 14:30:24 +05:30

6 lines
165 B
PHP

@props(['count' => 0])
<div {{$attributes->merge(['class' =>"flex text-accent-600 space-x-1"])}} data-count="{{$count}}">
{{$slot}}
<p>{{$count}}</p>
</div>