put('menu', 'member'); session()->put('title', 'Rechnungen versenden'); return Inertia::render('sendpayment/VForm', [ 'types' => app(ActionFactory::class)->allLinks(), ]); } /** * @return Response|Responsable */ public function send(Request $request) { $letter = app(DocumentFactory::class)->singleLetter($request->type, new BillKindQuery(BillKind::POST)); if (is_null($letter)) { return response()->noContent(); } $pdfFile = Tex::compile($letter); app(DocumentFactory::class)->afterSingle($letter); return $pdfFile; } }