mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
Fixed bug in filament OrganizationResource
This commit is contained in:
committed by
Constantin Graf
parent
31c7bdf420
commit
a98e4649e3
@@ -51,7 +51,15 @@ class OrganizationResource extends Resource
|
|||||||
->required(),
|
->required(),
|
||||||
Forms\Components\Select::make('currency')
|
Forms\Components\Select::make('currency')
|
||||||
->label('Currency')
|
->label('Currency')
|
||||||
->options(ISOCurrencyProvider::getInstance()->getAvailableCurrencies())
|
->options(function (): array {
|
||||||
|
$currencies = ISOCurrencyProvider::getInstance()->getAvailableCurrencies();
|
||||||
|
$select = [];
|
||||||
|
foreach ($currencies as $currency) {
|
||||||
|
$select[$currency->getCurrencyCode()] = $currency->getName().' ('.$currency->getCurrencyCode().')';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $select;
|
||||||
|
})
|
||||||
->searchable(),
|
->searchable(),
|
||||||
Forms\Components\TextInput::make('billable_rate')
|
Forms\Components\TextInput::make('billable_rate')
|
||||||
->label('Billable rate (in Cents)')
|
->label('Billable rate (in Cents)')
|
||||||
|
|||||||
Reference in New Issue
Block a user