diff --git a/app/Filament/Resources/ReferenceResource.php b/app/Filament/Resources/ReferenceResource.php index f4b1d05a..5f6d81d6 100644 --- a/app/Filament/Resources/ReferenceResource.php +++ b/app/Filament/Resources/ReferenceResource.php @@ -41,9 +41,11 @@ public static function form(Form $form): Form "male" => "Mężczyzna", "female" => "Kobieta", ]), - Forms\Components\TextInput::make("position") - ->label("Stanowisko") - ->maxLength(255), + TranslatableContainer::make( + Forms\Components\TextInput::make("position") + ->label("Stanowisko") + ->maxLength(255), + )->requiredLocales(config("app.translatable_locales")), Forms\Components\TextInput::make("company") ->label("Firma") ->maxLength(255), diff --git a/app/Models/Reference.php b/app/Models/Reference.php index 7677ce6e..afa56063 100644 --- a/app/Models/Reference.php +++ b/app/Models/Reference.php @@ -27,6 +27,7 @@ class Reference extends Model public $translatable = [ "description", + "position", ]; protected $fillable = [ "creator_name", diff --git a/resources/views/projects/carbon.blade.php b/resources/views/projects/carbon.blade.php index ae4f034b..44282022 100644 --- a/resources/views/projects/carbon.blade.php +++ b/resources/views/projects/carbon.blade.php @@ -78,4 +78,6 @@ class="max-w-[350px] 2xl:place-items-start pr-4"> + + @endsection