Skip to content

Commit 6460743

Browse files
committed
Fix pint
1 parent 87e3883 commit 6460743

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

app/Filament/Resources/Referrals/ReferralResource.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ public static function form(Schema $schema): Schema
4444
->searchable()
4545
->preload()
4646
->required(),
47-
47+
4848
TextInput::make('code')
4949
->label('Referral Code')
5050
->required()
5151
->maxLength(20)
5252
->unique(ignoreRecord: true)
5353
->alphaDash()
5454
->helperText('Leave empty to auto-generate'),
55-
55+
5656
Select::make('status')
5757
->options([
5858
'active' => 'Active',
@@ -63,26 +63,26 @@ public static function form(Schema $schema): Schema
6363
->required(),
6464
])
6565
->columnSpan(1),
66-
66+
6767
Section::make('Performance Metrics')
6868
->description('Real-time referral statistics')
6969
->schema([
7070
Placeholder::make('clicks')
7171
->label('Total Clicks')
7272
->content(fn (?Referral $record): string => $record ? number_format($record->clicks) : '0'),
73-
73+
7474
Placeholder::make('conversions')
7575
->label('Conversions')
7676
->content(fn (?Referral $record): string => $record ? number_format($record->conversions) : '0'),
77-
77+
7878
Placeholder::make('conversion_rate')
7979
->label('Conversion Rate')
80-
->content(fn (?Referral $record): string => $record && $record->clicks > 0
81-
? number_format(($record->conversions / $record->clicks) * 100, 2) . '%'
80+
->content(fn (?Referral $record): string => $record && $record->clicks > 0
81+
? number_format(($record->conversions / $record->clicks) * 100, 2).'%'
8282
: 'N/A'),
8383
])
8484
->columnSpan(1),
85-
85+
8686
Section::make('Conversion Details')
8787
->description('Information about the referred user and conversion')
8888
->schema([
@@ -92,7 +92,7 @@ public static function form(Schema $schema): Schema
9292
->searchable()
9393
->preload()
9494
->disabled(),
95-
95+
9696
DateTimePicker::make('converted_at')
9797
->label('Conversion Date')
9898
->disabled(),

wave/src/Actions/Referrals/ProcessReferralConversion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ protected function createReward(Referral $referral, Subscription $subscription):
6060
$plan = $subscription->plan;
6161

6262
// Calculate commission (20% of first payment)
63-
$basePrice = $subscription->cycle === 'month'
64-
? (float) $plan->monthly_price
63+
$basePrice = $subscription->cycle === 'month'
64+
? (float) $plan->monthly_price
6565
: (float) $plan->yearly_price;
6666

6767
$commissionAmount = $basePrice * 0.20;

0 commit comments

Comments
 (0)