diff --git a/app/Http/Controllers/Test/TestController.php b/app/Http/Controllers/Test/TestController.php index 60fc6c0ed..d3931b098 100644 --- a/app/Http/Controllers/Test/TestController.php +++ b/app/Http/Controllers/Test/TestController.php @@ -42,6 +42,7 @@ class TestController extends Controller $mains = new Collection; $perms = null; $config = config('esi'); + $bodies = new Collection; /** * This section will determine if users are mains or alts of a main. @@ -142,12 +143,13 @@ class TestController extends Controller * Send the collected information over to the function to send the actual mail */ if($ledgers->count() > 0) { - $this->CreateInvoice($main, $ledgers, $mailDelay); + $body = $this->CreateInvoice($main, $ledgers, $mailDelay); + $bodies->push($body); } } - return view('test.miningtax.invoice')->with('perms', $perms); + return view('test.miningtax.invoice')->with('bodies', $bodies); } /** @@ -247,12 +249,12 @@ class TestController extends Controller $body .= "
Sincerely,
Warped Intentions Leadership
"; } - var_dump($body); - /** * Increment the mail delay for the next cycle */ $mailDelay += 20; + + return $body; } public function DebugMiningObservers() { diff --git a/resources/views/test/miningtax/invoice.blade.php b/resources/views/test/miningtax/invoice.blade.php index e457c4de2..12e9b8a5b 100644 --- a/resources/views/test/miningtax/invoice.blade.php +++ b/resources/views/test/miningtax/invoice.blade.php @@ -1,4 +1,4 @@ @extends('layouts.user.dashb4'); @section('content') -{{ var_dump($perms) }} +{{ var_dump($bodies) }} @endsection \ No newline at end of file