dealhub/resources/views/components/ui/input.blade.php
kusowl 8c93e78955 feat(Authentication): User log in, role based dashboard, and logout
- add login functionality
- alerts for registration and user account status
- fix status of broker role is not pending during registration
2026-01-09 15:17:28 +05:30

11 lines
430 B
PHP

@props(['label' => '', 'name' => '', 'placeholder' => '', 'type' => 'text'])
<div class="flex flex-col space-y-2">
@if($label !== '')
<label class="text-sm font-bold" for="{{$name}}">{{$label}}</label>
@endif
<input class="bg-[#F3F3F5] py-2 px-4 rounded-lg" type="{{$type}}" placeholder="{{$placeholder}}"
name="{{$name}}" value="{{old($name)}}">
<x-ui.inline-error :name="$name" />
</div>