toasts timer increased to 5s. Add animation to the toast Add toast for like and favorite actions fixed the deal card design added a opening animation to modal
45 lines
2.0 KiB
PHP
45 lines
2.0 KiB
PHP
<x-dashboard.broker.layout title="Create a new deal">
|
|
|
|
<x-slot:heading>
|
|
<x-dashboard.page-heading
|
|
title="Create New Deal"
|
|
description="Share a new opportunity with the community"
|
|
:back-link="route('broker.dashboard')"
|
|
/>
|
|
</x-slot:heading>
|
|
|
|
<div class="flex items-center justify-center px-4 pb-4 pt-0 md:px-8 md:pb-8">
|
|
<x-dashboard.card class="w-full">
|
|
<h3 class="text-md font-bold">Deal Information</h3>
|
|
<form method="post" enctype="multipart/form-data" action="{{route('broker.deals.store')}}"
|
|
class="flex flex-col space-y-8 mt-4">
|
|
@csrf
|
|
<x-ui.input name="title" label="Deal Title" required placeholder="e.g., Luxury Apartment Downtown"/>
|
|
|
|
<x-ui.select :options="$categories" name="deal_category_id" label-key="name" value-key="id"
|
|
label="Category"
|
|
placeholder="Select a category" required/>
|
|
|
|
<x-ui.textarea name="description" label="Description" required
|
|
placeholder="Describe your deal in detail..."/>
|
|
|
|
<x-ui.image-input name="image" label="Upload image" allowed="jpg,png" size="10"/>
|
|
|
|
<x-ui.input
|
|
name="link"
|
|
label="External Link (Optional)"
|
|
placeholder="https://example.com"
|
|
description="Add a link to your website, listing page or contact form"
|
|
/>
|
|
|
|
<div class="grid md:grid-cols-12 w-full gap-4">
|
|
<x-ui.button variant="neutral" class="md:col-span-10">Submit</x-ui.button>
|
|
<x-ui.button link="{{route('broker.dashboard')}}" class="border border-accent-600/20 md:col-span-2">
|
|
Cancel
|
|
</x-ui.button>
|
|
</div>
|
|
</form>
|
|
</x-dashboard.card>
|
|
</div>
|
|
</x-dashboard.broker.layout>
|