Menu

## DashboardController extends Controller
in package
uses Dashboard

DashboardController.php : 15

### Table of Contents

#### Methods

accountantDashboard() : array<string|int, mixed>
  Build dashboard metrics for accountant users.
adminDashboard() : array<string|int, mixed>
  Build data required for admin dashboard metrics and widgets.
index() : Response
  Display a listing of the resource.
librarianDashboard() : array<string|int, mixed>
  Build dashboard metrics for librarian users.
list() : mixed
listCount() : mixed
receptionDashboard() : array<string|int, mixed>
  Build dashboard metrics for receptionist users.
studentDashboard() : array<string|int, mixed>
  Build data required for student dashboard including exams, marks, and attendance.
teacherDashboard() : array<string|int, mixed>
  Build data required for teacher dashboard including timetable, notices, and exams.
timetable() : Response
  Display a listing of the resource.

### Methods

#### accountantDashboard()

Dashboard.php : 414

Build dashboard metrics for accountant users.

`public accountantDashboard(int $school_id, int $accountant_id) : array<string|int, mixed>`

##### Parameters

$school_id : int

  School identifier

$accountant_id : int

  Accountant user identifier

##### Return values

array<string|int, mixed> —

Accountant dashboard data

#### adminDashboard()

Dashboard.php : 46

Build data required for admin dashboard metrics and widgets.

`public adminDashboard(int $school_id, int $admin_id) : array<string|int, mixed>`

##### Parameters

$school_id : int

  School identifier

$admin_id : int

  Admin user identifier

##### Return values

array<string|int, mixed> —

Aggregated dashboard data

#### index()

DashboardController.php : 24

Display a listing of the resource.

`public index(Request $request) : Response`

##### Parameters

$request : Request

##### Return values

Response

#### librarianDashboard()

Dashboard.php : 369

Build dashboard metrics for librarian users.

`public librarianDashboard(int $school_id, int $librarian_id) : array<string|int, mixed>`

##### Parameters

$school_id : int

  School identifier

$librarian_id : int

  Librarian user identifier

##### Return values

array<string|int, mixed> —

Librarian dashboard data

#### list()

DashboardController.php : 51
`public list(Request $request, mixed $task_flag) : mixed`

##### Parameters

$request : Request
$task_flag : mixed

#### listCount()

DashboardController.php : 67
`public listCount() : mixed`

#### receptionDashboard()

Dashboard.php : 333

Build dashboard metrics for receptionist users.

`public receptionDashboard(int $school_id, int $receptionist_id) : array<string|int, mixed>`

##### Parameters

$school_id : int

  School identifier

$receptionist_id : int

  Receptionist user identifier

##### Return values

array<string|int, mixed> —

Reception dashboard data

#### studentDashboard()

Dashboard.php : 195

Build data required for student dashboard including exams, marks, and attendance.

`public studentDashboard(int $school_id, User $user_id, int $standardLink_id, mixed $subject, mixed $exam, mixed $mark, mixed $exam_date) : array<string|int, mixed>`

##### Parameters

$school_id : int

  School identifier

$user_id : User

  Student user model (expects ->id)

$standardLink_id : int

  Standard link identifier

$subject : mixed

  Subject filter (nullable)

$exam : mixed

  Exam filter (nullable)

$mark : mixed

  Mark filter (nullable)

$exam_date : mixed

  Exam date filter (nullable)

##### Return values

array<string|int, mixed> —

Student dashboard data

#### teacherDashboard()

Dashboard.php : 266

Build data required for teacher dashboard including timetable, notices, and exams.

`public teacherDashboard(int $school_id, int $teacher_id) : array<string|int, mixed>`

##### Parameters

$school_id : int

  School identifier

$teacher_id : int

  Teacher user identifier

##### Return values

array<string|int, mixed> —

Teacher dashboard data

#### timetable()

DashboardController.php : 40

Display a listing of the resource.

`public timetable(Request $request) : Response`

##### Parameters

$request : Request

##### Return values

Response

## Search results