diff --git a/app/Member/MemberController.php b/app/Member/MemberController.php index adc040e4..83c38763 100644 --- a/app/Member/MemberController.php +++ b/app/Member/MemberController.php @@ -20,7 +20,8 @@ class MemberController extends Controller session()->put('title', 'Mitglieder'); return \Inertia::render('member/Index', [ - 'data' => MemberResource::collection(Member::search($request->query('search', null))->with('billKind')->paginate(15)) + 'data' => MemberResource::collection(Member::search($request->query('search', null))->with('billKind')->paginate(15)), + 'toolbar' => [ ['href' => route('member.create'), 'label' => 'Mitglied anlegen', 'color' => 'primary', 'icon' => 'plus'] ], ]); } diff --git a/resources/js/layouts/App.vue b/resources/js/layouts/App.vue index b4696b48..2e6e1cc3 100644 --- a/resources/js/layouts/App.vue +++ b/resources/js/layouts/App.vue @@ -11,7 +11,14 @@