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.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class InputField extends Component
|
||||
{
|
||||
public $label;
|
||||
public $model;
|
||||
public $type;
|
||||
public $step;
|
||||
|
||||
public function __construct($label, $model, $type = 'text', $step = null)
|
||||
{
|
||||
$this->label = $label;
|
||||
$this->model = $model;
|
||||
$this->type = $type;
|
||||
$this->step = $step;
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('components.input-field');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user