Files
ProxyPanel/resources/views/components/admin/form/input.blade.php
BrettonYe ad3662cda0 🚀 Refactor Blade
- Optimize Blade JavaScript code.
- Refactored multiple admin controllers for improved validation, error handling, and query efficiency.
- Added ProxyConfig trait to centralize proxy configuration options.
- Updated NodeStatusDetection to use model relationships for heartbeat checks.
- Improved category, label, and country management logic and error logging.
- Added new Blade components for admin UI and updated language files and assets for better localization and frontend support.
- Bug fixed & introduced more bug :)
2026-01-30 20:04:17 +08:00

25 lines
807 B
PHP

@props([
'name',
'id' => null,
'label' => null,
'type' => 'text',
'placeholder' => '',
'required' => false,
'attribute' => 'autocomplete=off',
'help' => null,
'label_grid' => 'col-xxl-2 col-lg-3 col-sm-4',
'input_grid' => 'col-xxl-4 col-xl-7 col-sm-8',
'container' => 'form-group row',
])
<div class="{{ $container }}">
<label class="{{ $label_grid }} col-form-label" for="{{ $id ?? $name }}">{{ $label }}</label>
<div class="{{ $input_grid }}">
<input class="form-control" id="{{ $id ?? $name }}" name="{{ $name }}" type="{{ $type }}" placeholder="{{ $placeholder }}"
@if ($required) required @endif {{ $attribute }} />
@if ($help)
<span class="text-help">{!! $help !!}</span>
@endif
</div>
</div>