ShowAliasController.php 715 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Controllers;
  3. class ShowAliasController extends Controller
  4. {
  5. public function index()
  6. {
  7. return view('aliases.index', [
  8. 'defaultRecipient' => user()->defaultRecipient,
  9. 'aliases' => user()->aliases()->with(['recipients', 'aliasable.defaultRecipient'])->latest()->get(),
  10. 'recipients' => user()->verifiedRecipients,
  11. 'totalForwarded' => user()->totalEmailsForwarded(),
  12. 'totalBlocked' => user()->totalEmailsBlocked(),
  13. 'totalReplies' => user()->totalEmailsReplied(),
  14. 'domain' => user()->username.'.'.config('anonaddy.domain'),
  15. 'bandwidthMb' => user()->bandwidth_mb
  16. ]);
  17. }
  18. }