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) { $invoice = app(DocumentFactory::class)->singleInvoice($request->type, new BillKindQuery(BillKind::POST)); if (is_null($invoice)) { return response()->noContent(); } $pdfFile = Tex::compile($invoice); app(DocumentFactory::class)->afterSingle($invoice); return $pdfFile; } }