diff --git a/app/Payment/SubscriptionController.php b/app/Payment/SubscriptionController.php index 5ef11a9e..425ed53f 100644 --- a/app/Payment/SubscriptionController.php +++ b/app/Payment/SubscriptionController.php @@ -15,7 +15,7 @@ class SubscriptionController extends Controller session()->put('menu', 'subscription'); session()->put('title', 'Beiträge'); - return \Inertia::render('subscription/Index', [ + return \Inertia::render('subscription/SubscriptionIndex', [ 'data' => SubscriptionResource::collection(Subscription::get()), 'toolbar' => [ ['href' => route('subscription.create'), 'label' => 'Beitrag anlegen', 'color' => 'primary', 'icon' => 'plus'] ], ]); @@ -26,7 +26,7 @@ class SubscriptionController extends Controller session()->put('menu', 'subscription'); session()->put('title', 'Beitrag erstellen'); - return \Inertia::render('subscription/Form', [ + return \Inertia::render('subscription/SubscriptionForm', [ 'fees' => Fee::pluck('name', 'id'), 'mode' => 'create', 'data' => (object) [] @@ -49,7 +49,7 @@ class SubscriptionController extends Controller session()->put('menu', 'subscription'); session()->put('title', "Beitrag {$subscription->name} bearbeiten"); - return \Inertia::render('subscription/Form', [ + return \Inertia::render('subscription/SubscriptionForm', [ 'fees' => Fee::pluck('name', 'id'), 'mode' => 'edit', 'data' => new SubscriptionResource($subscription), diff --git a/resources/js/views/subscription/Form.vue b/resources/js/views/subscription/SubscriptionForm.vue similarity index 100% rename from resources/js/views/subscription/Form.vue rename to resources/js/views/subscription/SubscriptionForm.vue diff --git a/resources/js/views/subscription/Index.vue b/resources/js/views/subscription/SubscriptionIndex.vue similarity index 98% rename from resources/js/views/subscription/Index.vue rename to resources/js/views/subscription/SubscriptionIndex.vue index a88d4e72..cfae4ab1 100644 --- a/resources/js/views/subscription/Index.vue +++ b/resources/js/views/subscription/SubscriptionIndex.vue @@ -8,7 +8,7 @@
-