Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisdelicata committed Aug 23, 2024
1 parent 8f33606 commit cc2d97f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 30 deletions.
23 changes: 0 additions & 23 deletions app/Filament/Resources/AffiliateResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down
6 changes: 3 additions & 3 deletions app/Filament/Resources/PartialPaymentResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -87,4 +87,4 @@ public static function getEloquentQuery(): Builder
})
->latest();
}
}
}
6 changes: 3 additions & 3 deletions app/Filament/Resources/RefundResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -78,4 +78,4 @@ public static function getEloquentQuery(): Builder
->whereIn('refund_status', ['none', 'partial'])
->latest();
}
}
}
3 changes: 2 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

require __DIR__.'/socialstream.php';

0 comments on commit cc2d97f

Please sign in to comment.