Skip to content

Commit

Permalink
fix fise
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Dec 31, 2024
1 parent 9572836 commit 7265336
Show file tree
Hide file tree
Showing 8 changed files with 148 additions and 75 deletions.
24 changes: 24 additions & 0 deletions app/Enums/AllowancePerson.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

namespace App\Enums;

use App\Concerns\Enums;
use Filament\Support\Contracts\HasLabel;

enum AllowancePerson: string implements HasLabel
{
use Enums\HasLabel;
use Enums\Arrayable;
use Enums\Comparable;

case BENEFICIARY = 'beneficiary';
case OTHER = 'other';
case UNKNOWN = 'unknown';

public function labelKeyPrefix(): ?string
{
return 'enum.allowance_person';
}
}
2 changes: 2 additions & 0 deletions app/Enums/FileDocumentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ enum FileDocumentType: string implements HasLabel
case RENTAL_AGREEMENT = 'rental_agreement';
case SALE_PURCHASE_AGREEMENT = 'sale_purchase_agreement';
case IML_CERTIFICATE = 'iml_certificate';

case COURT_SENTENCES = 'court_sentences';
case OTHER = 'other';

protected function labelKeyPrefix(): ?string
Expand Down
2 changes: 0 additions & 2 deletions app/Enums/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ enum PaymentMethod: string implements HasLabel
use Enums\HasLabel;
use Enums\Arrayable;
use Enums\Comparable;

case REPRESENTATIVE = 'representative';
case POSTAL_OFFICE = 'postal_office';
case BANK_ACCOUNT = 'bank_account';
case OTHER = 'other';
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ private function getSchemaForLegalAssistance(): array
Section::make(__('intervention_plan.headings.file_documents'))
->columns()
->schema([
Group::make()
->schema([
EnumEntry::make('data.copy_documents')
->label(__('intervention_plan.labels.copy_documents'))
->enumClass(FileDocumentType::class),
TextEntry::make('data.copy_documents_observation')
->label(__('intervention_plan.labels.copy_documents_observation')),
]),
Group::make()
->schema([
EnumEntry::make('data.original_documents')
Expand All @@ -119,14 +127,6 @@ private function getSchemaForLegalAssistance(): array
->label(__('intervention_plan.labels.original_documents_observation')),
]),

Group::make()
->schema([
EnumEntry::make('data.copy_documents')
->label(__('intervention_plan.labels.copy_documents'))
->enumClass(FileDocumentType::class),
TextEntry::make('data.copy_documents_observation')
->label(__('intervention_plan.labels.copy_documents_observation')),
]),
]),

Section::make(__('intervention_plan.headings.institution_contacted'))
Expand Down
1 change: 1 addition & 0 deletions app/Http/Middleware/EnsureUserIsActive.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function handle(Request $request, Closure $next): Response
)
->first();

// dd($activeOrganization);
if ($activeOrganization) {
auth()->user()->update(['latest_organization_id' => $activeOrganization->organization_id]);

Expand Down
9 changes: 8 additions & 1 deletion lang/ro/enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,15 @@
'rental_agreement' => 'Contract închiriere',
'sale_purchase_agreement' => 'Contract vânzare-cumpărare',
'iml_certificate' => 'Certificat IML',
'court_sentences' => 'Sentințe judecătorești',
'other' => 'Altele',
],
'allowance_person' => [

'beneficiary' => 'Beneficiara',
'other' => 'Altǎ persoanǎ',
'unknown' => 'Nu știe/ Nu răspunde',
],

'protection_order' => [
'temporary' => 'Provizoriu',
Expand Down Expand Up @@ -476,7 +483,7 @@
'deaf' => 'Surdocecitate',
'somatic' => 'Somatic',
'mental' => 'Mintal',
'neuropsychic' => 'Neuropsihic',
'neuropsychic' => 'Neuropsihic',
'hiv_aids' => 'HIV/SIDA',
'associate' => 'Asociat',
'rare_diseases' => 'Boli rare',
Expand Down
35 changes: 32 additions & 3 deletions lang/ro/intervention_plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'copy_documents_observation' => 'Observații acte în copie depuse la dosar (altele)',
'institution' => 'Instituția',
'contact_date' => 'Data contactării',
'phone' => 'Telefon',
'phone' => 'Contact(telefon/email)',
'contact_person' => 'Persoana de contact',
'final_observation' => 'Observații finale evaluare',

Expand Down Expand Up @@ -134,10 +134,11 @@
'protection_measuring_type' => 'Tip măsură de protecție',
'establishment_year' => 'Anul instituirii',
'allowance' => 'Alocație de stat',
'allowance_person' => 'Reprezentant alocație',
'payment_method' => 'Modalitate de plată',
'family_medic' => 'Medic de familie',
'family_doctor_contact' => 'Date de contact medic de familie',
'health_status' => 'Stare de sănătate',
'health_status' => 'Probleme de sănătate',
'school_coordinator' => 'Dacă este școlarizat, detalii învățător/diriginte',
'relationship_details' => 'Caracterizarea relației',
'communication' => 'Comunicare',
Expand Down Expand Up @@ -190,7 +191,7 @@
'patrimony_data' => 'Date patrimoniu',
'file_documents' => 'Acte depuse la dosar',
'final_observations' => 'Observații finale',
'institution_contacted' => 'Instituții contactate',
'institution_contacted' => 'Instituții contactate în baza planului de intervenție',
'medical_details' => 'Date medicale',
'history' => 'Istoric ',
'violence_forms' => 'Forme de violență',
Expand Down Expand Up @@ -309,5 +310,33 @@
'monthly_plan_observations' => 'Specifică observații',
'search_by_beneficiary_or_specialist' => 'Caută caz sau specialist',
'service_details' => 'Adaugă orice detalii relevante acordării intervenției sau intervențiilor',
'juridic_file' => [
'chose_option' => 'Alege un rǎspuns',
'responsible_institution' => 'Introdu o instituție',
'contact_date' => 'Alege o dată',
'phone' => 'Intordu date de contact ',
'contact_person' => 'Introdu nume persoanǎ',
'final_observation' => 'Adaugǎ detalii',

],
'social_file' => [
'select' => 'Alege un răspuns',
'first_and_last_name' => 'Introdu numele persoanei',
'age' => 'Introdu vârsta',
'locality' => 'Introdu localitatea',
'occupation' => 'Introdu ocupația',
'relationship_observation' => 'Specificați relația',
'support_observations' => 'Specificați',
'person_or_group_name' => 'Introdu numele sau denumirea',
'rooms' => 'Total încăperi de locuit',
'peoples' => 'Introdu un număr',
'observations' => 'Specificați',
'add_details' => 'Adaugă detalii',
'select_age' => 'Alege un an',



],

],
];

0 comments on commit 7265336

Please sign in to comment.