From cc2d97f744be51ec276f14dc4a43441f8ef6cf64 Mon Sep 17 00:00:00 2001 From: Curtis Delicata Date: Fri, 23 Aug 2024 07:47:05 +0000 Subject: [PATCH] Fixes --- app/Filament/Resources/AffiliateResource.php | 23 ------------------- .../Resources/PartialPaymentResource.php | 6 ++--- app/Filament/Resources/RefundResource.php | 6 ++--- routes/web.php | 3 ++- 4 files changed, 8 insertions(+), 30 deletions(-) diff --git a/app/Filament/Resources/AffiliateResource.php b/app/Filament/Resources/AffiliateResource.php index 1dfe9f5b..10704b9d 100644 --- a/app/Filament/Resources/AffiliateResource.php +++ b/app/Filament/Resources/AffiliateResource.php @@ -78,29 +78,6 @@ public static function table(Table $table): Table ]); } - public static function table(Table $table): Table - { - return $table - ->columns([ - Tables\Columns\TextColumn::make('user.name'), - Tables\Columns\TextColumn::make('code'), - Tables\Columns\TextColumn::make('commission_rate'), - Tables\Columns\TextColumn::make('status'), - Tables\Columns\TextColumn::make('total_earnings') - ->money('usd') - ->sortable(), - ]) - ->filters([ - // - ]) - ->actions([ - Tables\Actions\EditAction::make(), - ]) - ->bulkActions([ - Tables\Actions\DeleteBulkAction::make(), - ]); - } - public static function getRelations(): array { return [ diff --git a/app/Filament/Resources/PartialPaymentResource.php b/app/Filament/Resources/PartialPaymentResource.php index 111fed07..c8d701a4 100644 --- a/app/Filament/Resources/PartialPaymentResource.php +++ b/app/Filament/Resources/PartialPaymentResource.php @@ -6,9 +6,9 @@ use App\Models\Invoice; use App\Models\PaymentGateway; use Filament\Forms; -use Filament\Resources\Form; +use Filament\Forms\Form; use Filament\Resources\Resource; -use Filament\Resources\Table; +use Filament\Tables\Table; use Filament\Tables; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletingScope; @@ -87,4 +87,4 @@ public static function getEloquentQuery(): Builder }) ->latest(); } -} \ No newline at end of file +} diff --git a/app/Filament/Resources/RefundResource.php b/app/Filament/Resources/RefundResource.php index 110f9d94..62c27f62 100644 --- a/app/Filament/Resources/RefundResource.php +++ b/app/Filament/Resources/RefundResource.php @@ -5,9 +5,9 @@ use App\Filament\Resources\RefundResource\Pages; use App\Models\Payment; use Filament\Forms; -use Filament\Resources\Form; +use Filament\Forms\Form; use Filament\Resources\Resource; -use Filament\Resources\Table; +use Filament\Tables\Table; use Filament\Tables; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletingScope; @@ -78,4 +78,4 @@ public static function getEloquentQuery(): Builder ->whereIn('refund_status', ['none', 'partial']) ->latest(); } -} \ No newline at end of file +} diff --git a/routes/web.php b/routes/web.php index 2fd9ff76..ea79e27a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -26,4 +26,5 @@ Route::get('/team-invitations/{invitation}', [TeamInvitationController::class, 'accept']) ->middleware(['signed', 'verified', 'auth', AuthenticateSession::class]) ->name('team-invitations.accept'); -require __DIR__.'/socialstream.php';require __DIR__.'/socialstream.php';require __DIR__.'/socialstream.php'; \ No newline at end of file + +require __DIR__.'/socialstream.php';