You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
470 B
PHTML
21 lines
470 B
PHTML
1 year ago
|
<?php
|
||
|
|
||
1 year ago
|
namespace App\Http\Controllers\Admin;
|
||
1 year ago
|
|
||
1 year ago
|
use App\Http\Controllers\Controller;
|
||
1 year ago
|
use App\Models\Notification;
|
||
|
|
||
|
class NotificationController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$query = Notification::where('entity_type', \App\Models\User::class)
|
||
|
->orderBy('is_read', 'asc')
|
||
|
->orderBy('created_at', 'desc');
|
||
|
|
||
|
return inertia('Notification/Index', [
|
||
|
'query' => $query->paginate(),
|
||
|
]);
|
||
|
}
|
||
|
}
|