Skip to content

Commit 5368d22

Browse files
simonhampclaude
andcommitted
Reduce included seats to 5 and show unused seat count in remove modal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b74fd46 commit 5368d22

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

config/subscriptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'anystack_policy_id' => env('ANYSTACK_MAX_POLICY_ID'),
3232
'stripe_extra_seat_price_id' => env('STRIPE_EXTRA_SEAT_PRICE_ID'),
3333
'stripe_extra_seat_price_id_monthly' => env('STRIPE_EXTRA_SEAT_PRICE_ID_MONTHLY'),
34-
'included_seats' => 10,
34+
'included_seats' => 5,
3535
'extra_seat_price_yearly' => 4,
3636
'extra_seat_price_monthly' => 5,
3737
],

resources/views/livewire/team-manager.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<div x-data="{ removeQty: 1 }">
135135
<flux:heading size="lg">Remove Extra Seats</flux:heading>
136136
<flux:text class="mt-2">
137-
You currently have {{ $team->extra_seats }} extra seat(s). Seats are removed immediately and you'll be credited for the unused time on your next bill.
137+
You have {{ $removableSeats }} unused extra {{ Str::plural('seat', $removableSeats) }} available for removal. Seats are removed immediately and you'll be credited for the unused time on your next bill.
138138
</flux:text>
139139
<div class="mt-4">
140140
<flux:input type="number" label="Quantity" x-model.number="removeQty" min="1" max="{{ $removableSeats }}" class="w-24" />

tests/Feature/TeamManagementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ public function test_cannot_invite_beyond_seat_limit(): void
227227

228228
[$owner, $team] = $this->createTeamWithOwner();
229229

230-
// Create 9 active members to fill all seats (owner occupies 1 of 10 included seats)
231-
TeamUser::factory()->count(9)->active()->create(['team_id' => $team->id]);
230+
// Create 4 active members to fill all seats (owner occupies 1 of 5 included seats)
231+
TeamUser::factory()->count(4)->active()->create(['team_id' => $team->id]);
232232

233233
$response = $this->actingAs($owner)
234234
->post(route('customer.team.invite'), ['email' => 'extra@example.com']);

0 commit comments

Comments
 (0)