Menu

## NotificationController extends Controller
in package

NotificationController.php : 27

Class NotificationController

Handles notification listing, reading, and summary display for authenticated admin users.

### Table of Contents

#### Methods

index() : View
  Display notification index page.
indexList() : array<string|int, mixed>|null
  Fetch all read and unread notifications for the logged-in user.
showList() : array<string|int, mixed>|null
  Fetch latest unread notifications summary.
store() : array<string|int, mixed>|null
  Mark notification(s) as read.

### Methods

#### index()

NotificationController.php : 77

Display notification index page.

`public index() : View`

##### Return values

View

#### indexList()

NotificationController.php : 39

Fetch all read and unread notifications for the logged-in user.

`public indexList() : array<string|int, mixed>|null`

Returns notifications grouped as read and unread using API resource transformation.

##### Return values

array<string|int, mixed>|null

#### showList()

NotificationController.php : 136

Fetch latest unread notifications summary.

`public showList() : array<string|int, mixed>|null`

Returns unread notification count and the latest five unread notifications with formatted data.

##### Return values

array<string|int, mixed>|null

#### store()

NotificationController.php : 92

Mark notification(s) as read.

`public store(Request $request) : array<string|int, mixed>|null`

Marks a single notification or all notifications as read based on request input.

##### Parameters

$request : Request

##### Return values

array<string|int, mixed>|null

## Search results