diff --git a/app/Filament/Resources/AlertMailRuleResource.php b/app/Filament/Resources/AlertMailRuleResource.php index 5c8b892..2c7bf87 100644 --- a/app/Filament/Resources/AlertMailRuleResource.php +++ b/app/Filament/Resources/AlertMailRuleResource.php @@ -118,31 +118,31 @@ class AlertMailRuleResource extends Resource ->label('All Plants Reports') ->afterStateUpdated(fn ($state, callable $set) => $state ? $set('plant', null) : null) ->reactive(), - Forms\Components\Actions::make([ - Action::make('sendInvoiceData') - ->label('Invoice Data Report') - ->action(function ($get) { + // Forms\Components\Actions::make([ + // Action::make('sendInvoiceData') + // ->label('Invoice Data Report') + // ->action(function ($get) { - $plantIds = AlertMailRule::where('module', 'InvoiceDataReport') - ->orderBy('plant') - ->pluck('plant') - ->toArray(); + // $plantIds = AlertMailRule::where('module', 'InvoiceDataReport') + // ->orderBy('plant') + // ->pluck('plant') + // ->toArray(); - foreach ($plantIds as $plantId) { - Artisan::call('send:invoice-data-report', [ - 'schedule_type' => 'Daily', - 'plant' => $plantId, - ]); - } + // foreach ($plantIds as $plantId) { + // Artisan::call('send:invoice-data-report', [ + // 'schedule_type' => 'Daily', + // 'plant' => $plantId, + // ]); + // } - // Notify user in Filament - Notification::make() - ->title('Invoice data report sent successfully!') - ->success() - ->send(); - }), + // // Notify user in Filament + // Notification::make() + // ->title('Invoice data report sent successfully!') + // ->success() + // ->send(); + // }), - ]), + // ]), Forms\Components\Hidden::make('created_by') ->default(fn () => Filament::auth()->user()?->name), Forms\Components\Hidden::make('updated_by')