- Created a dedicated UserDashboardController to handle user-related logic. - Added deal listing views and components for users, including action toolbars, broker contact, and stat badges. - Refactored UI components to support new features like toggle buttons and improved input handling. - Updated routes with a new prefix for user-related pathways, ensuring a better structure across dashboards.
24 lines
876 B
PHP
24 lines
876 B
PHP
@props(['deals' => []])
|
|
<div class="wrapper">
|
|
<x-dashboard.card class="bg-white">
|
|
<p class="font-bold mb-6">My Listings</p>
|
|
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
|
@forelse($deals as $deal)
|
|
<x-dashboard.broker.listing-card
|
|
:id="$deal->id"
|
|
:image="asset('storage/'.$deal->image)"
|
|
:title="$deal->title"
|
|
:category="$deal->category->name"
|
|
:status="$deal->active"
|
|
impressions="1245"
|
|
likes="89"
|
|
class="156"
|
|
:external_link="$deal->link"
|
|
/>
|
|
@empty
|
|
<p class="text-center text-xs text-accent-600 lg:col-span-3">No Deals created</p>
|
|
@endforelse
|
|
</div>
|
|
</x-dashboard.card>
|
|
</div>
|