new MemberResource($member ->load('memberships') ->load('payments.subscription') ->load('nationality') ->load('region') ), 'toolbar' => [['href' => route('member.index'), 'label' => 'Zurück', 'color' => 'primary', 'icon' => 'undo']], ]; } public function asController(Member $member): Response { session()->put('menu', 'member'); session()->put('title', 'Mitglied '.$member->fullname); return Inertia::render('member/ShowView', $this->handle($member)); } }