Files
ProxyPanel/resources/views/components/admin/form/textarea.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

24 lines
711 B
PHP

@props([
'name',
'id' => null,
'label' => null,
'rows' => 5,
'help' => null,
'label_grid' => 'col-xxl-2 col-lg-3 col-sm-4',
'input_grid' => 'col-xxl-6 col-sm-8',
'container' => 'form-group row',
'placeholder' => null,
])
<div class="{{ $container }}">
@if ($label)
<label class="{{ $label_grid }} col-form-label" for="{{ $id ?? $name }}">{{ $label }}</label>
@endif
<div class="{{ $input_grid }}">
<textarea class="form-control" id="{{ $id ?? $name }}" name="{{ $name }}" rows="{{ $rows }}" placeholder="{!! $placeholder !!}"></textarea>
@if ($help)
<span class="text-help">{{ $help }}</span>
@endif
</div>
</div>