Rename Subscription components
This commit is contained in:
parent
f88dadc417
commit
bf3406b9e0
|
@ -15,7 +15,7 @@ class SubscriptionController extends Controller
|
||||||
session()->put('menu', 'subscription');
|
session()->put('menu', 'subscription');
|
||||||
session()->put('title', 'Beiträge');
|
session()->put('title', 'Beiträge');
|
||||||
|
|
||||||
return \Inertia::render('subscription/Index', [
|
return \Inertia::render('subscription/SubscriptionIndex', [
|
||||||
'data' => SubscriptionResource::collection(Subscription::get()),
|
'data' => SubscriptionResource::collection(Subscription::get()),
|
||||||
'toolbar' => [ ['href' => route('subscription.create'), 'label' => 'Beitrag anlegen', 'color' => 'primary', 'icon' => 'plus'] ],
|
'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('menu', 'subscription');
|
||||||
session()->put('title', 'Beitrag erstellen');
|
session()->put('title', 'Beitrag erstellen');
|
||||||
|
|
||||||
return \Inertia::render('subscription/Form', [
|
return \Inertia::render('subscription/SubscriptionForm', [
|
||||||
'fees' => Fee::pluck('name', 'id'),
|
'fees' => Fee::pluck('name', 'id'),
|
||||||
'mode' => 'create',
|
'mode' => 'create',
|
||||||
'data' => (object) []
|
'data' => (object) []
|
||||||
|
@ -49,7 +49,7 @@ class SubscriptionController extends Controller
|
||||||
session()->put('menu', 'subscription');
|
session()->put('menu', 'subscription');
|
||||||
session()->put('title', "Beitrag {$subscription->name} bearbeiten");
|
session()->put('title', "Beitrag {$subscription->name} bearbeiten");
|
||||||
|
|
||||||
return \Inertia::render('subscription/Form', [
|
return \Inertia::render('subscription/SubscriptionForm', [
|
||||||
'fees' => Fee::pluck('name', 'id'),
|
'fees' => Fee::pluck('name', 'id'),
|
||||||
'mode' => 'edit',
|
'mode' => 'edit',
|
||||||
'data' => new SubscriptionResource($subscription),
|
'data' => new SubscriptionResource($subscription),
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="px-6 py-3 border-gray-600 border-b"></div>
|
<div class="px-6 py-3 border-gray-600 border-b"></div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div v-for="sub, index in data" class="text-gray-200 transition-all duration-300 rounded flex items-center hover:bg-gray-800">
|
<div v-for="sub, index in data" class="text-gray-200 transition-all duration-300 rounded flex items-center hover:bg-gray-800" :key="index">
|
||||||
<div class="py-1 px-6" v-text="sub.name"></div>
|
<div class="py-1 px-6" v-text="sub.name"></div>
|
||||||
<div class="py-1 px-6" v-text="sub.amount_human"></div>
|
<div class="py-1 px-6" v-text="sub.amount_human"></div>
|
||||||
<div class="py-1 px-6" v-text="sub.fee_name"></div>
|
<div class="py-1 px-6" v-text="sub.fee_name"></div>
|
Loading…
Reference in New Issue