diff --git a/resources/views/plan_features/create.blade.php b/resources/views/plan_features/create.blade.php index 80f4794..5812e45 100644 --- a/resources/views/plan_features/create.blade.php +++ b/resources/views/plan_features/create.blade.php @@ -7,10 +7,8 @@ - - - - + + @foreach($routes as $route) diff --git a/resources/views/plan_features/edit.blade.php b/resources/views/plan_features/edit.blade.php index a0a83d5..e04414d 100644 --- a/resources/views/plan_features/edit.blade.php +++ b/resources/views/plan_features/edit.blade.php @@ -6,10 +6,8 @@ - - - - + + @foreach($routes as $route) diff --git a/resources/views/plan_subscription/edit.blade.php b/resources/views/plan_subscription/edit.blade.php index 496c784..3d64aee 100644 --- a/resources/views/plan_subscription/edit.blade.php +++ b/resources/views/plan_subscription/edit.blade.php @@ -10,7 +10,7 @@ @endforeach - + diff --git a/resources/views/plans/create.blade.php b/resources/views/plans/create.blade.php index 7324002..ac8086b 100644 --- a/resources/views/plans/create.blade.php +++ b/resources/views/plans/create.blade.php @@ -11,10 +11,8 @@ 'order' => \Modules\Plan\Entities\Plan::count() + 1, ]" class="my-4 flex flex-col space-y-4" action="{{route('admin.plans.store')}}" method="post" :default="['features'=>[]]"> - - - - + + diff --git a/resources/views/plans/edit.blade.php b/resources/views/plans/edit.blade.php index 2ea732b..b26361c 100644 --- a/resources/views/plans/edit.blade.php +++ b/resources/views/plans/edit.blade.php @@ -2,10 +2,8 @@ - - - - + + @@ -18,7 +16,7 @@ - +
@@ -26,12 +24,12 @@
- +
-
+
diff --git a/src/Http/Controllers/PlanController.php b/src/Http/Controllers/PlanController.php index 0dd3c1e..a6ded4c 100644 --- a/src/Http/Controllers/PlanController.php +++ b/src/Http/Controllers/PlanController.php @@ -41,13 +41,13 @@ public function index(Request $request): View|JsonResponse * @param Request $request * @return JsonResponse */ -// public function api(Request $request): JsonResponse -// { -// return Tomato::json( -// request: $request, -// model: Plan::class, -// ); -// } + public function api(Request $request): JsonResponse + { + return Tomato::json( + request: $request, + model: Plan::class, + ); + } /**