Skip to content

Commit

Permalink
min
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Dec 30, 2024
1 parent 89c6e17 commit 3ec7bf3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected static function beneficiarySection(): array
->columns()
->relationship('details')
->headerActions([
EditAction::make('edit')
EditAction::make()
->url(fn ($record) => BeneficiaryResource::getUrl('edit_personal_information', ['record' => $record])),
])
->extraAttributes([
Expand Down Expand Up @@ -240,7 +240,7 @@ protected static function aggressorSection(): array
Section::make(__('beneficiary.section.personal_information.section.aggressor'))
->columns()
->headerActions([
EditAction::make('edit')
EditAction::make()
->url(fn ($record) => BeneficiaryResource::getUrl('edit_aggressor', ['record' => $record])),
])
->extraAttributes([
Expand Down Expand Up @@ -360,7 +360,7 @@ protected static function antecedentsSection(): array
->columns()
->relationship('antecedents')
->headerActions([
EditAction::make('edit')
EditAction::make()
->url(fn ($record) => BeneficiaryResource::getUrl('edit_antecedents', ['record' => $record])),
])
->extraAttributes([
Expand Down Expand Up @@ -404,7 +404,7 @@ protected static function flowSection(): array
->columns()
->relationship('flowPresentation')
->headerActions([
EditAction::make('edit')
EditAction::make()
->url(fn ($record) => BeneficiaryResource::getUrl('edit_flow_presentation', ['record' => $record])),
])
->extraAttributes([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function getInfoListSchema(): array
SectionHeader::make('counseling_sheet')
->state(__('intervention_plan.headings.counseling_sheet'))
->action(
EditAction::make('view')
EditAction::make()
->url(InterventionPlanResource::getUrl(
'edit_counseling_sheet',
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function getInfolistSchema(): array
->maxWidth('3xl')
->columns()
->headerActions([
EditAction::make('edit')
EditAction::make()
->url(InterventionPlanResource::getUrl('edit_intervention_service', [
'parent' => $this->record->interventionPlan,
'record' => $this->record,
Expand Down
4 changes: 0 additions & 4 deletions app/Filament/Organizations/Resources/MonitoringResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
namespace App\Filament\Organizations\Resources;

use App\Models\Monitoring;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Database\Eloquent\Model;

Expand All @@ -24,5 +21,4 @@ public static function getRecordTitle(Model|null $record): string|null|Htmlable
{
return $record->number;
}

}

0 comments on commit 3ec7bf3

Please sign in to comment.