diff --git a/app/Filament/Resources/OrganisationResource.php b/app/Filament/Resources/OrganisationResource.php index 594f002..286007b 100644 --- a/app/Filament/Resources/OrganisationResource.php +++ b/app/Filament/Resources/OrganisationResource.php @@ -131,7 +131,7 @@ public static function form(Form $form): Form ->columnSpanFull(), ]), - Section::make(__('organisation.field.contact_person')) + Section::make(__('organisation.section.contact_person')) ->columns() ->schema([ TextInput::make('contact_person.first_name') @@ -202,6 +202,33 @@ public static function form(Form $form): Form ]), ]), + Section::make(__('organisation.section.contact_person_in_teams')) + ->columns() + ->schema([ + TextInput::make('contact_person_in_teams.first_name') + ->label(__('organisation.field.contact_person_in_teams_first_name')) + ->maxLength(50), + + TextInput::make('contact_person_in_teams.last_name') + ->label(__('organisation.field.contact_person_in_teams_last_name')) + ->maxLength(50), + + TextInput::make('contact_person_in_teams.role') + ->label(__('organisation.field.role')) + ->columnSpanFull() + ->maxLength(50), + + TextInput::make('contact_person_in_teams.email') + ->label(__('organisation.field.email')) + ->maxLength(50) + ->email(), + + TextInput::make('contact_person_in_teams.phone') + ->label(__('organisation.field.phone')) + ->maxLength(14) + ->tel(), + ]), + Section::make(__('organisation.section.activity')) ->columns() ->schema([ diff --git a/app/Models/Organisation.php b/app/Models/Organisation.php index d887453..1cf017e 100644 --- a/app/Models/Organisation.php +++ b/app/Models/Organisation.php @@ -60,6 +60,7 @@ public function registerMediaConversions(Media $media = null): void 'cif', 'registration_number', 'contact_person', + 'contact_person_in_teams', 'other_information', 'description', 'address', @@ -75,6 +76,7 @@ public function registerMediaConversions(Media $media = null): void 'ngo_type' => NGOType::class, 'status' => OrganisationStatus::class, 'contact_person' => 'array', + 'contact_person_in_teams' => 'array', 'other_information' => AsCollection::class, 'has_branches' => 'boolean', ]; diff --git a/database/migrations/2024_09_09_103924_add_contact_person_in_teams_in_organisation_table.php b/database/migrations/2024_09_09_103924_add_contact_person_in_teams_in_organisation_table.php new file mode 100644 index 0000000..0f52eba --- /dev/null +++ b/database/migrations/2024_09_09_103924_add_contact_person_in_teams_in_organisation_table.php @@ -0,0 +1,30 @@ +json('contact_person_in_teams')->nullable()->after('contact_person'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('organisations', function (Blueprint $table) { + // + }); + } +}; diff --git a/lang/ro/organisation.php b/lang/ro/organisation.php index 7973438..8ac18d2 100644 --- a/lang/ro/organisation.php +++ b/lang/ro/organisation.php @@ -28,12 +28,13 @@ 'description' => 'Descriere extinsă organizație', 'short_description' => 'Descriere scurtă organizație', 'logo' => 'Logo organizație', - 'contact_person' => 'Persoană de contact în relația cu DSU', 'choose' => 'Alege', 'email' => 'Email', 'phone' => 'Telefon', 'contact_person_first_name' => 'Prenume persoană de contact', 'contact_person_last_name' => 'Nume persoană de contact', + 'contact_person_in_teams_first_name' => 'Nume', + 'contact_person_in_teams_last_name' => 'Prenume', 'other_information' => 'Alte informații', 'social_services_accreditation' => 'ONG acreditat pentru servicii sociale', 'risk_categories' => 'Tipuri de riscuri acoperite', @@ -104,6 +105,8 @@ 'localities' => 'Localitati', 'other_information' => 'Alte informatii', 'profile' => 'Profil', + 'contact_person' => 'Persoană de contact în relația cu DSU', + 'contact_person_in_teams' => 'Persoană de contact pentru Platforma Teams \'Sprijin Umanitar DSU-GOV / FiiPregătit\'' ], 'help' => [