Files
sirpremiumv2/resources/views/components/input-field.blade.php
T
Juan Felipe Duarte a558e393f2 Add rank management feature with CRUD and UI
Introduces a new rank management system including the Rank model, migrations for the ranks table and user IP address, Livewire components for managing and displaying ranks, and related Blade views. Updates navigation and routes to include the new 'Gestión Rangos' section, and enhances the ShareCodeComponent with user data. Also adds a reusable input field component for forms.
2025-10-23 20:28:47 -05:00

17 lines
521 B
PHP

@props(['label', 'model', 'type' => 'text', 'step' => null])
<div class="flex flex-col space-y-1">
<label class="block text-sm font-medium text-gray-700">{{ $label }}</label>
<input
type="{{ $type }}"
@if($step) step="{{ $step }}" @endif
wire:model="{{ $model }}"
class="border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500 w-full text-gray-800"
/>
@error($model)
<span class="text-xs text-red-500">{{ $message }}</span>
@enderror
</div>