- 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.
22 lines
788 B
PHP
22 lines
788 B
PHP
@props(['label' => '', 'name' => '', 'placeholder' => '', 'type' => 'text', 'description' => '', 'required' => false, 'value' => ''])
|
|
<div {{$attributes->merge(['class' => 'flex flex-col space-y-2'])}}>
|
|
@if($label !== '')
|
|
<label class="text-sm font-bold" for="{{$name}}">
|
|
{{$label}}
|
|
@if($required)
|
|
*
|
|
@endif
|
|
</label>
|
|
@endif
|
|
<input class="bg-[#F3F3F5] py-2 px-4 rounded-lg"
|
|
type="{{$type}}" placeholder="{{$placeholder}}"
|
|
name="{{$name}}" value="{{old($name, $value)}}"
|
|
{{$required?'required':''}}
|
|
{{$attributes}}
|
|
>
|
|
@if($description !== '')
|
|
<p class="text-accent-600 text-xs">{{$description}}</p>
|
|
@endif
|
|
<x-ui.inline-error :name="$name"/>
|
|
</div>
|