2024-07-05 10:35:26 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Club;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
use Illuminate\Contracts\View\View;
|
2024-07-18 12:13:35 +02:00
|
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
|
use Illuminate\Support\Facades\View as FacadesView;
|
2024-07-05 10:35:26 +02:00
|
|
|
|
|
|
|
|
class NotificationController extends Controller
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Show index page
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Contracts\View\View
|
|
|
|
|
*/
|
|
|
|
|
public function index(): View
|
|
|
|
|
{
|
|
|
|
|
return view('club.pages.notifications.index');
|
|
|
|
|
}
|
2024-07-18 12:13:35 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get notifications count
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
|
*/
|
|
|
|
|
public function notificationsCount(): JsonResponse
|
|
|
|
|
{
|
|
|
|
|
return response()->json(FacadesView::shared('notifications_count', 0));
|
|
|
|
|
}
|
2024-07-05 10:35:26 +02:00
|
|
|
}
|