Skip to content

Commit

Permalink
Fixed bug in filament OrganizationResource
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Apr 29, 2024
1 parent 31c7bdf commit a98e464
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/Filament/Resources/OrganizationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ public static function form(Form $form): Form
->required(),
Forms\Components\Select::make('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(),
Forms\Components\TextInput::make('billable_rate')
->label('Billable rate (in Cents)')
Expand Down

0 comments on commit a98e464

Please sign in to comment.