fix: team permissions, transactions, form sentinels and review polish

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Doar Mihai
2026-10-17 16:12:31 +03:00
co-authored by Claude Sonnet 5.5
parent c4e6173e46
commit 231123f641
8 changed files with 343 additions and 57 deletions
@@ -1,7 +1,7 @@
@props(['plans' => []])
@php
$initial = collect(old('plans', $plans))->map(fn ($p) => [
$initial = collect(old('plans_present') ? old('plans', []) : $plans)->map(fn ($p) => [
'name' => $p['name'] ?? '',
'price' => $p['price'] ?? '',
'period' => $p['period'] ?? 'monthly',
@@ -12,6 +12,7 @@
<!-- Pricing plans -->
<div x-data="{ plans: @js($initial) }">
<input type="hidden" name="plans_present" value="1">
<label class="block text-sm font-medium text-gray-700">Pricing plans</label>
<div class="mt-2 space-y-3">
<template x-for="(plan, i) in plans" :key="i">