dealhub/resources/views/components/dashboard/user/listing-card.blade.php
kusowl af6d629b68 feature(external link redirection count of deal):
add a controller which increments the count for the click of external link of a deal.
2026-01-19 15:52:55 +05:30

35 lines
1.5 KiB
PHP

@props(['deal' => '', 'broker' => ''])
<x-ui.image-card class="shadow-lg" :image="asset('storage/'.$deal->image)">
<div class="bg-white pt-8 p-4 h-full space-y-2 flex flex-col justify-between">
<div class="flex justify-between">
<x-ui.button-sm variant="neutral">
{{$deal->category->name}}
</x-ui.button-sm>
@ds($deal)
<x-dashboard.user.action-toolbar :deal_link="$deal->link" :deal_title="$deal->title" :deal_id="$deal->id" :like="$deal->is_liked" :favourite="$deal->is_favorite" />
</div>
<p class="font-bold text-lg ">{{$deal->title}}</p>
<p class="text-sm text-accent-600 wrap-break-word">{{$deal->description}}</p>
<x-dashboard.user.broker-contact :broker="$broker"/>
<div class="flex justify-between items-center">
<div class="flex space-x-3">
<x-dashboard.user.stat-badge id="{{'likeBadge'.$deal->id}}" :count="$deal->total_likes">
<x-heroicon-o-heart class="w-4"/>
</x-dashboard.user.stat-badge>
<x-dashboard.user.stat-badge :count="433">
<x-heroicon-o-arrow-top-right-on-square class="w-4"/>
</x-dashboard.user.stat-badge>
</div>
<x-ui.button variant="neutral" class="flex space-x-2 items-center">
<p>View Deal</p>
<x-heroicon-o-arrow-top-right-on-square class="w-5 ml-1"/>
</x-ui.button>
</div>
</div>
</x-ui.image-card>