Add navigation sorting to SettingsCluster, enhance CurrencyRate model with table association and name attribute, and update Turkish translations for currency terms

This commit is contained in:
2025-11-13 22:12:35 +05:00
parent 54e11dcbb4
commit 038b5ea2fb
9 changed files with 228 additions and 2 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace App\Filament\Clusters\Settings\Resources\CurrencyRates\Schemas;
use App\Modules\CurrencyRate\Models\CurrencyRate;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class CurrencyRateForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Select::make('currency_from')
->label(__('Currency from'))
->native(false)
->searchable()
->options(CurrencyRate::currencies())
->rules('required')
->belowLabel('1 möçberi'),
Select::make('currency_to')
->label(__('Currency to'))
->native(false)
->searchable()
->options(CurrencyRate::currencies())
->rules('required')
->belowLabel('1 möçberi'),
TextInput::make('value')
->label(__('Currency value'))
->required()
->numeric()
->belowLabel('Bitin däl sanlary "." bilen ýazmaly'),
]);
}
}