mirror of
https://github.com/anonaddy/anonaddy
synced 2026-05-08 16:12:21 +02:00
23 lines
531 B
PHP
23 lines
531 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
class ShowRecipientController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$recipients = user()->recipients()->with('aliases')->latest()->get();
|
|
|
|
$count = $recipients->count();
|
|
|
|
$recipients->each(function ($item, $key) use ($count) {
|
|
$item['key'] = $count - $key;
|
|
});
|
|
|
|
return view('recipients.index', [
|
|
'recipients' => $recipients,
|
|
'aliasesUsingDefault' => user()->aliasesUsingDefault
|
|
]);
|
|
}
|
|
}
|