System Overview: Company Portal (DTR System)


Table of Contents

1. Executive Summary

Welcome to the Company Portal (DTR System)—a comprehensive workforce management solution built on Laravel 10.x. This system unifies Human Resources Management, Attendance Tracking (DTR), Workforce Scheduling, Leave & Overtime Management, and Single Sign-On (SSO) authentication into a single, production-ready platform.

Mission Statement

To reduce administrative overhead by 40% through full automation of attendance tracking, leave management, and employee data centralization while maintaining compliance with Philippine labor laws (RA 10151, BIR, SSS, PhilHealth).

Key Objectives

  • Real-Time Attendance Validation: Geofence-based clock-ins with Haversine formula distance calculation
  • Centralized Employee Data: Single source of truth for all HR, attendance, and compliance records
  • Seamless SSO Integration: OAuth 2.0-based authentication across integrated applications
  • Multi-Role Dashboard: Tailored interfaces for Admin, HR, Employees, and Team Leads
  • Comprehensive Leave & Overtime: Request, approve, and track employee time off and extra work
  • Schedule Management: Shift assignment, drag-and-drop scheduling, conflict detection
  • Audit-Ready Reporting: Complete activity logs and compliance-ready exports

Note: Payroll processing module (Gross Pay Calculation, Deductions, Payslip Generation) is scheduled for Phase 2 (Q1-Q2 2025) development.


2. System Architecture

The application follows a strict MVC (Model-View-Controller) pattern with event-driven job queues and middleware protection. This ensures scalability, maintainability, and security across all layers.

Architectural Layers

┌────────────────────────────────────────────────────────────────┐
│                      Presentation Layer                        │
│  (Blade Views, DaisyUI Components, Tailwind CSS)               │
│                                                                │
│  - Dashboard (Admin, HR, Employee, Team Lead)                 │
│  - CRUD Forms (Users, Employees, Leaves, etc)                 │
│  - Modal Dialogs (Approvals, Confirmations)                   │
│  - Reports (Charts, Tables, Exports)                          │
│  - Calendar Views (DTR, Shifts, Leaves)                       │
└────────────────────────┬─────────────────────────────────────┘
                         │
┌────────────────────────▼─────────────────────────────────────┐
│              Application/Business Logic Layer                  │
│              (Laravel Controllers & Services)                  │
│                                                                │
│  Admin/              Web/                API/                  │
│  - Dashboard         - Home              - SSOController       │
│  - Users             - DTR               - AdminAPI            │
│  - Roles             - Leaves            - V1 APIs             │
│  - Schedules         - Overtime                                │
│  - SSO Clients       - Holidays                                │
│  - Activities        - Notifications                           │
│  - Approvers         - Calendars                               │
└────────────────────────┬─────────────────────────────────────┘
                         │
┌────────────────────────▼─────────────────────────────────────┐
│                  Data Access Layer                             │
│              (Eloquent ORM, Models, Policies)                 │
│                                                                │
│  - User Model          - Leave Request Model                  │
│  - Employee Model      - Overtime Model                       │
│  - DTR Record Model    - Holiday Model                        │
│  - Schedule Model      - Shift Model                          │
│  - SSO Client Model    - Role & Permission Models             │
│  - Activity Log Model  - Notification Model                   │
└────────────────────────┬─────────────────────────────────────┘
                         │
┌────────────────────────▼─────────────────────────────────────┐
│                    Data Layer                                  │
│           (MySQL Database + Redis Cache + Queue)              │
│                                                                │
│  - Persistent Data (MySQL 8.0+)                               │
│  - Session Cache (Redis 6.x+)                                 │
│  - Job Queue (Redis Queue)                                    │
│  - Rate Limiting Cache                                        │
└────────────────────────────────────────────────────────────────┘

Design Patterns Used

Pattern Purpose Example
MVC Separation of concerns Controller → Model → View
Service Layer Business logic encapsulation DTRService, LeaveService
Observer/Event Trigger actions on model events LeaveRequested, OvertimeApproved
Policy-Based Authorization rules per resource LeaveRequestPolicy
Factory Create complex objects UserFactory (testing)
Repository Data access abstraction UserRepository

3. Technology Stack

We utilize a modern, LTS (Long Term Support) focused stack to ensure security and maintainability.

Layer Technology Version Purpose
Backend Laravel 10.x+ Core PHP framework (routing, ORM, jobs)
Frontend Blade + Tailwind CSS 3.0+ Server-side template rendering
UI Components DaisyUI 3.x+ Pre-built accessible Tailwind components
Database MySQL 8.0+ Relational data storage
Cache/Queue Redis 6.x+ Session store, job queue, rate limiting
Authentication Laravel Sanctum + OAuth 2.0 API token auth + SSO
Email Laravel Mail + Mailable - Transaction emails (approvals, requests)
File Storage Local / AWS S3 - Document uploads, file management
JavaScript Alpine.js + Chart.js - Interactivity (modals, charts, calendars)
Export Laravel Excel - XLSX/CSV reports (Activity Logs, etc)

4. Core Modules & Features

4.1 Dashboard Module (Multi-Role)

Each user role has a tailored dashboard reflecting their responsibilities:

Admin Dashboard (Web/Admin/DashboardController)

  • System Overview: Total users, employees, pending approvals, system health
  • Activity Monitor: Recent logins, system changes, user actions
  • Quick Stats: Active shifts, on-leave employees, pending requests
  • Server Health: Database, queue, cache, storage status
  • User Management: Recent user activity, role assignments

Employee Dashboard (Web/Employee/DashboardController)

  • My Attendance: Today's status, current shift, attendance history
  • My Requests: Pending leave/overtime requests, approval status
  • Leave Balance: Used/remaining leave quota by type
  • Schedule: Assigned shifts, upcoming schedules
  • Notifications: Approval updates, announcements
  • My Documents: Uploaded files, compliance documents

HR Dashboard (Web/HR/DashboardController)

  • Leave Management: Approve/reject leave requests with reason tracking
  • Overtime Processing: Review overtime claims and approvals
  • Holiday Management: Create and manage general holidays
  • Reports: Attendance summary, leave usage by department
  • Analytics: Leave trends, overtime patterns
  • Compliance: Employee documentation status

Team Lead Dashboard (Web/Tl/DashboardController)

  • Team Members: View assigned employees, their schedules
  • Attendance Approval: Approve remote clock-ins and manual entries
  • Schedule Management: Assign shifts to team, view team calendar
  • Leave Approvals: Approve team member leave requests
  • Team Requests: Pending leave/overtime from team
  • Performance Metrics: Team attendance, punctuality rates

4.2 DTR Module (Daily Time Record) & Geofencing

Location-aware attendance validation using the Haversine formula.

Controllers

  • Web/Admin/DTRController - Admin management & manual entries
  • Web/Employee/AttendanceController - Employee clock-in/out
  • Web/HR/AttendanceController - HR oversight & approvals
  • Web/Tl/AttendanceController - Team lead attendance management
  • API/V1/SSOController - API-based DTR (mobile integration)

Key Features

Geofence Validation Algorithm
┌──────────────────────────────────┐
│ User Clock-In Request            │
│ (Latitude, Longitude, Timestamp) │
└────────────┬─────────────────────┘
             │
      ┌──────▼──────────────┐
      │ Calculate Distance  │
      │ (Haversine Formula) │
      │ Office: 14.5994°N,  │
      │        120.9842°E   │
      └──────┬──────────────┘
             │
      ┌──────▼────────────────────┐
      │ Check Business Rules:      │
      │ - Within office hours?     │
      │ - Already clocked in?      │
      │ - On approved schedule?    │
      │ - Not on approved leave?   │
      └──────┬────────────────────┘
             │
    ┌────────▼─────────────────────┐
    │ Status Determination:        │
    │                              │
    │ IF d ≤ 50m  → APPROVED       │
    │ IF d > 50m  → REMOTE         │
    │             (Manual review)  │
    └────────┬─────────────────────┘
             │
   ┌─────────▼────────────────────┐
   │ Store DTR Record             │
   │ + Audit Log Entry            │
   │ + Send Notification          │
   └──────────────────────────────┘
Distance Status Reference
Status Distance Action Impact
Approved ≤ 50m Auto-approved Count as attendance
Remote > 50m Flagged for review Pending approval

DTR Features

  • ✅ Real-time GPS validation with distance calculation
  • ✅ Multi-status workflow (Approved/Remote)
  • ✅ Attendance history with calendar view
  • ✅ Manual clock-in capability (admin/HR)
  • ✅ Clock-in/out time tracking per shift
  • ✅ Integration with leave system (block on approved leave)
  • ✅ Late arrival detection and flagging
  • ✅ Undertime tracking (short shifts)
  • ✅ Audit trail with IP logging
  • ✅ Mobile-friendly clock-in interface

4.3 Leave Management

Controllers

  • Web/Admin/LeaveRequestController - Admin management
  • Web/HR/LeaveRequestController - HR approval workflow
  • Web/Employee/LeaveRequestController - Employee requests
  • Web/Tl/LeaveRequestController - Team lead approvals

Leave Types Supported

  • Sick Leave - Medical reasons (with cert support)
  • Vacation Leave - Paid time off
  • Emergency Leave - Family emergencies
  • Maternity/Paternity - Parental leave
  • Without Pay - Unpaid leave requests
  • Special Leave - Company-specific types

Features

  • ✅ Leave request submission with attachments
  • ✅ Multi-level approval workflow (Employee → TL → HR → Admin)
  • ✅ Leave balance tracking per type with carry-over
  • ✅ Leave balance calculation (daily/monthly/annual)
  • ✅ Overlapping leave detection and prevention
  • ✅ Expiration alerts for unused leaves
  • ✅ Email notifications at each approval stage
  • ✅ Historical tracking of all requests with reasons
  • ✅ Pro-rata leave calculation for new hires
  • ✅ Bulk leave uploads (admin)
  • ✅ Leave policy enforcement per employee type

4.4 Overtime Management

Controllers

  • Web/Admin/OvertimeController - Admin management
  • Web/HR/OvertimeController - HR approval & monitoring
  • Web/Employee/OvertimeController - Employee requests
  • Web/Tl/OvertimeController - Team lead approvals

Features

  • ✅ Overtime request submission with date/hours/reason
  • ✅ Multi-level approval workflow
  • ✅ Automatic detection from DTR (hours > shift)
  • ✅ Overtime rate calculation (1.25x, 1.5x on holidays)
  • ✅ Approval status tracking
  • ✅ Overtime history per employee
  • ✅ Email notifications for approvers
  • ✅ Overtime policy enforcement
  • ✅ Blackout dates (no OT on holidays)
  • ✅ Expiration alerts for pending OT records

4.5 Schedule & Shift Management

Controllers

  • Web/Admin/ScheduleController - Schedule management
  • Web/Admin/ShiftController - Shift definitions
  • Web/Tl/ScheduleController - Team lead scheduling
  • Web/Employee/ShiftController - Employee view
  • Web/Tl/UserScheduleController - Team member assignment

Shift Types

  • Morning Shift (08:00 - 17:00)
  • Afternoon Shift (14:00 - 23:00)
  • Night Shift (23:00 - 08:00)
  • Flexible/Custom (customizable hours)

Features

  • ✅ Shift templates with configurable hours
  • ✅ Drag-and-drop schedule builder (interactive calendar)
  • ✅ Employee shift assignments with bulk operations
  • ✅ Schedule conflict detection (double booking)
  • ✅ Calendar visualization (month/week/day views)
  • ✅ Shift swap requests between employees
  • ✅ Schedule publishing with employee notifications
  • ✅ Schedule history and change logs
  • ✅ Recurring shift patterns (weekly, bi-weekly)
  • ✅ Shift trading with approval workflow

4.6 Holidays & General Calendar

Controllers

  • Web/HR/HolidayController - Holiday management
  • Web/CalendarEventController - Event calendar
  • Web/Employee/CalendarController - Employee calendar view

Features

  • ✅ National holidays (Philippine calendar)
  • ✅ Special holidays & company-wide events
  • ✅ Personal calendar (leave, shifts, events)
  • ✅ Shift calendar integration
  • ✅ Multi-view options (month, week, day)
  • ✅ Event notifications to employees
  • ✅ Color-coded event types
  • ✅ Holiday pay rate definitions
  • ✅ Bulk holiday uploads
  • ✅ Holiday impact on DTR (no clock-in expected)

4.7 SSO & Application Gateway

Controllers

  • Web/Admin/SSOClientController - Client CRUD, secret regeneration
  • API/V1/SSOController - OAuth 2.0 endpoints
  • Api/Admin/DashboardController - SSO analytics

OAuth 2.0 Flow

User Portal              SSO Server             Integrated App
   │                        │                         │
   ├─ Click Login ──────────>│                        │
   │                        │                         │
   │                        ├─ Generate Code ─────────>│
   │                        │                         │
   │<─────────────────────────────────────────────────┤
   │         Redirect with Code                       │
   │                        │                         │
   │                        │<─ Exchange Code ────────│
   │                        │   for Access Token      │
   │                        │                         │
   │                        ├─ Validate Token ────────>│
   │                        │                         │
   │<────────Session Created────────────────────────┤

Features

  • ✅ OAuth 2.0 Authorization Code Flow
  • ✅ Client registration with custom icon/branding
  • ✅ Secret key management & regeneration
  • ✅ Redirect URL validation & whitelisting
  • ✅ Token expiration & refresh mechanism
  • ✅ Scope-based permissions per app
  • ✅ Audit logging of all authentication attempts
  • ✅ Admin dashboard for SSO analytics
  • ✅ Multiple integrated app support
  • ✅ Token revocation capability

4.8 HR & Employee Management

Controllers

  • Web/Admin/UserController - User CRUD operations
  • Web/Admin/ProfileController - Admin user profiles
  • Web/Employee/ProfileController - Employee self-service profiles
  • Web/Admin/RoleController - Role management & permissions
  • Web/Admin/ApproverController - Approver hierarchy setup

Features

  • ✅ Complete employee directory with profiles
  • ✅ Employee information management (personal/contact data)
  • ✅ Document management (contracts, certifications)
  • ✅ Emergency contact storage
  • ✅ Bank account details (encrypted)
  • ✅ Skills & certifications tracking
  • ✅ Org chart visualization (hierarchical)
  • ✅ User role & permission management
  • ✅ Approver chain configuration
  • ✅ Employee status tracking (active/inactive/resigned)
  • ✅ Department & position management
  • ✅ Employee search & filtering

4.9 Activity Log & Audit Trail

Controllers

  • Web/Admin/ActivityLogController - Complete log viewer
  • Web/Admin/NotificationController - Notification management
  • Web/Employee/NotificationController - Employee notifications

Features

  • ✅ Complete audit trail of all user actions
  • ✅ Track DTR, leave, overtime, user changes
  • ✅ IP logging & device tracking
  • ✅ Timestamp recording for all activities
  • ✅ Activity filtering & advanced search
  • ✅ Export capabilities for compliance
  • ✅ Real-time notifications to relevant users
  • ✅ Action reversal capability (undo)
  • ✅ User impersonation logging (ImpersonateUserController)
  • ✅ Retention policy enforcement

4.10 Workplace & Workstation Management

Controllers

  • Web/Admin/WorkPlaceController - Workplace/office setup
  • Web/Admin/WorkStationController - Workstation management
  • Web/Tl/WorkPlaceController - Team lead view

Features

  • ✅ Office location management (address, contact)
  • ✅ Geofence coordinates setup (latitude/longitude)
  • ✅ Multiple office/branch support
  • ✅ Workstation mapping (desk/room assignments)
  • ✅ Capacity management per office
  • ✅ Office hours definition
  • ✅ Default workplace per employee
  • ✅ Workplace-specific rules

5. User Roles & Access Control

The system implements Role-Based Access Control (RBAC) with Laravel Policies governing all resource access.

Defined Roles

Role Module Access Key Responsibilities
Admin All modules System config, user management, approvals
HR Leaves, Overtime, Holidays, Approvals, Reports Approve leaves/OT, manage policies, reports
Employee Own DTR, Leave requests, View payslip (future) Clock in/out, request leave/OT, self-service
Team Lead Own team's DTR, approvals, schedule Approve team leaves/OT, manage shifts, staff
Finance Payroll view (future), reports Monitor payroll, generate reports

RBAC Implementation (Laravel Policies)

// Example: LeaveRequestPolicy
public function approve(User $user, LeaveRequest $request)
{
    return $user->hasRole(['admin', 'hr', 'team_lead']);
}

public function create(User $user)
{
    return $user->hasRole(['admin', 'employee', 'team_lead']);
}

6. API Architecture

The system exposes a RESTful API for mobile and third-party integrations using OAuth 2.0 token authentication.

API Endpoints Structure

/api/
├── v1/
│   ├── /sso/authorize           (POST)   - Initiate OAuth
│   ├── /sso/token               (POST)   - Exchange code for token
│   ├── /sso/refresh             (POST)   - Refresh access token
│   ├── /dtr/clock-in            (POST)   - Clock in with location
│   ├── /dtr/clock-out           (POST)   - Clock out
│   ├── /dtr/history             (GET)    - Attendance history
│   ├── /dtr/{id}                (GET)    - Get specific DTR record
│   ├── /leaves                  (GET/POST) - Leave management
│   ├── /leaves/{id}/approve     (POST)   - Approve leave
│   ├── /overtime                (GET/POST) - Overtime management
│   ├── /schedules               (GET)    - Employee schedule
│   └── /user                    (GET)    - Current user info
│
└── admin/
    ├── /dashboard               (GET)    - System statistics
    ├── /users                   (GET/POST/PUT) - User management
    ├── /dtr/bulk-approve        (POST)   - Bulk DTR approval
    ├── /activities              (GET)    - Activity logs
    └── /reports/:type           (GET)    - Export reports

Request/Response Format

Example: Clock-In Request

POST /api/v1/dtr/clock-in
Authorization: Bearer <access_token>

{
  "latitude": 14.5994,
  "longitude": 120.9842,
  "timestamp": "2025-12-04T08:30:00Z",
  "device_id": "mobile-123"
}

Response: Success

{
    "success": true,
    "message": "Clock-in approved",
    "status": "APPROVED",
    "distance_meters": 45.3,
    "clock_in_time": "2025-12-04T08:30:15Z",
    "employee": {
        "id": 1,
        "name": "John Doe",
        "position": "Software Engineer",
        "shift": "Morning (08:00-17:00)"
    }
}

7. Security & Compliance

Authentication & Authorization

  • Laravel Sanctum: API token-based authentication
  • OAuth 2.0: SSO with authorization code flow
  • Bcrypt Hashing: Passwords hashed with cost factor 12
  • RBAC Policies: Granular permission control per resource
  • 2FA Support: Optional two-factor authentication (planned)

Data Protection

  • AES-256-CBC Encryption: Sensitive data encrypted at rest (bank accounts, SSN)
  • HTTPS/TLS 1.2+: All data in transit encrypted
  • SQL Injection Prevention: Eloquent ORM parameterized queries
  • CSRF Protection: Token-based CSRF on all forms
  • XSS Prevention: Blade template escaping
  • File Upload Validation: Type & size restrictions

Compliance & Regulations

  • Philippine Labor Laws: RA 10151 (Wage Rationalization) compliant
  • Data Retention: Records kept per regulatory requirements (5+ years)
  • Activity Logging: Complete audit trail for compliance
  • GDPR Partial: Data portability & right-to-be-forgotten support
  • Employee Privacy: Encryption of sensitive personal data

API Security

  • Rate Limiting: 100 requests/minute per IP
  • CORS: Whitelist trusted domains only
  • Input Validation: Server-side Laravel Rules validation
  • API Versioning: v1/ prefixed endpoints for backward compatibility

⚠️ Security Tip: Never commit .env files or secrets to Git. Use environment managers (HashiCorp Vault, AWS Secrets Manager).


8. Database & Data Flow

Core Tables Overview

users
├── id, name, email, password, role, status,
│   last_login, created_at, updated_at

employees
├── id, user_id, employee_id, department, position,
│   hire_date, status, manager_id, created_at

dtr_records
├── id, employee_id, clock_in, clock_out,
│   latitude, longitude, status, distance, notes,
│   approved_by, approved_at, created_at

leave_requests
├── id, employee_id, type, start_date, end_date,
│   reason, status, attachment, approved_by,
│   approval_date, created_at

overtime_requests
├── id, employee_id, date, hours, reason,
│   status, approved_by, approval_date, created_at

sso_clients
├── id, name, client_id, client_secret, redirect_url,
│   icon_id, is_sso, created_at, updated_at

schedules
├── id, employee_id, shift_id, date_from, date_to,
│   status, created_at

shifts
├── id, name, start_time, end_time, description,
│   is_active, created_at

roles
├── id, name, description, permissions (JSON)

activity_logs
├── id, user_id, action, model, model_id,
│   old_values, new_values, ip_address, created_at

workplaces
├── id, name, address, latitude, longitude,
│   geofence_radius, is_active, created_at

holidays
├── id, name, date, is_special, created_at

Data Flow: Main Workflows

DTR Clock-In Workflow

Employee Initiates Clock-In
    ↓
System Calculates GPS Distance (Haversine)
    ↓
Validate: Within office hours? On schedule?
    ↓
Status: APPROVED (≤50m) or REMOTE (>50m)
    ↓
DTR Record Created + Audit Log
    ↓
Notification Sent to Employee/HR

Leave Request Workflow

Employee Submits Leave Request
    ↓
System Checks: Leave balance, overlapping dates
    ↓
Notification to Team Lead
    ↓
[TL Approval/Rejection]
    ↓
Notification to HR (if approved by TL)
    ↓
[HR Final Approval/Rejection]
    ↓
Leave Status Updated + DTR Auto-Blocked
    ↓
Email Notification to Employee

Overtime Approval Workflow

Employee Requests Overtime
    ↓
System Notifies Team Lead
    ↓
[TL Approval/Rejection]
    ↓
[HR Review (if approved)]
    ↓
Overtime Status Updated
    ↓
Email Confirmation to Employee

9. Development Roadmap

✅ Phase 1 (Current - Complete)

  • [x] Core CRUD for Users, Employees, DTR
  • [x] Geofence-based attendance validation (Haversine formula)
  • [x] Leave & overtime management with approval workflows
  • [x] Schedule & shift management (drag-and-drop UI)
  • [x] SSO with OAuth 2.0 authentication
  • [x] Multi-role dashboards (Admin, HR, Employee, TL)
  • [x] Admin panel & controls
  • [x] Audit logging & activity tracking
  • [x] Workplace & workstation management
  • [x] Holiday management
  • [x] Notifications & email system
  • [x] API endpoints (RESTful)

🔄 Phase 2 (Q1-Q2 2025) - Payroll Module

  • [ ] Payroll Pipeline Engine (Gross → Deductions → Net)
  • [ ] DTR-to-Payslip automation
  • [ ] SSS/PhilHealth contribution calculations
  • [ ] BIR tax computation (progressive matrix)
  • [ ] Payslip PDF generation
  • [ ] Payroll ledger & history
  • [ ] Batch payment file generation (bank transfer)
  • [ ] Salary advance & loan deduction module
  • [ ] Payroll approval workflow
  • [ ] Employee payslip portal (view/download)

📅 Phase 3 (Q2-Q3 2025)

  • [ ] Mobile App (iOS/Android) with offline DTR
  • [ ] Biometric Integration (fingerprint, facial recognition)
  • [ ] SMS/WhatsApp Notifications
  • [ ] Advanced Leave Rules (pro-rata, carry-over policies)
  • [ ] Performance Management Module (reviews, KPIs)
  • [ ] Employee Self-Service Portal (benefits, requests)

🚀 Phase 4 (Q3-Q4 2025)

  • [ ] Advanced Analytics Dashboard with KPIs
  • [ ] Integration with Accounting Software (QuickBooks, SAP)
  • [ ] AI-Powered Anomaly Detection (fraudulent clock-ins)
  • [ ] Predictive Analytics for Workforce Planning
  • [ ] Multi-Company/Branch Support
  • [ ] Blockchain Audit Trails (optional)

🌟 Phase 5+ (2026)

  • [ ] Career Pathing & Succession Planning
  • [ ] Vendor Management System
  • [ ] API Marketplace for Third-Party Integrations
  • [ ] Mobile Wallet Integration (instant payouts)
  • [ ] Continuous Learning Platform Integration

File Structure Reference

View Files (/resources/views)

- dashboard.blade.php              - Main portal dashboard
- welcome.blade.php                - Public landing page

apps/
- index.blade.php                  - Application launcher grid

auth/
- login.blade.php                  - Login form
- register.blade.php               - Registration form
- sso-login.blade.php              - SSO login interface

users/
- admin/sso-clients/              - SSO client management
- admin/users/                     - User management
- admin/schedules/                 - Schedule management
- admin/dtr/                       - DTR admin panel
- employee/                        - Employee portal
- hr/                             - HR functions
- tl/                             - Team lead functions

components/
- badge.blade.php                  - Status badges
- calendar.blade.php               - Calendar widget
- chart.blade.php                  - Chart components
- modal.blade.php                  - Modal dialogs
- notification-message.blade.php   - Alert messages
- table.blade.php                  - Data table

emails/
- leaverequest.blade.php           - Leave notification email
- overtimerequest.blade.php        - Overtime notification
- approval.blade.php               - Approval notifications

docs/sso/                          - SSO documentation

Controller Files (/app/Http/Controllers)

Admin/
├── ActivityLogController          - Audit trail management
├── ApproverController             - Approver chain setup
├── AttendanceController           - Attendance admin
├── DashboardController            - Admin dashboard
├── DTRController                  - DTR admin panel
├── LeaveRequestController         - Leave approvals
├── NotificationController         - Notification management
├── OvertimeController             - Overtime management
├── ProfileController              - User profiles
├── RoleController                 - Role management
├── ScheduleController             - Schedule management
├── ShiftController                - Shift management
├── SSOClientController            - OAuth client mgmt
├── UserController                 - User CRUD
├── UserShiftController            - Shift assignments
├── WorkPlaceController            - Office management
└── WorkStationController          - Workstation mgmt

Web/
├── Admin/*                        - Admin panel controllers
├── Employee/*                     - Employee portal
├── HR/*                           - HR functions
├── Tl/*                           - Team lead functions
├── HomeController                 - Home/dashboard
├── CalendarEventController        - Calendar events
└── GeneralHolidayController       - Holiday management

API/
├── V1/SSOController               - OAuth endpoints
└── Admin/DashboardController      - API statistics

Support & Contribution

  • Documentation: /resources/docs/1.0/
  • API Docs: /docs/api (built-in)
  • Issue Tracker: GitHub Issues
  • Development: Follow PSR-12 coding standards

Important Notes

Payroll Module Status: The payroll processing engine (gross pay calculation, deduction processing, payslip generation) is NOT YET IMPLEMENTED and is scheduled for Phase 2 development (Q1-Q2 2025). Current version focuses on attendance tracking and leave/overtime management.


Change Log

Version Date Changes
1.0 Dec 2025 Phase 1 Complete (DTR, Leave, OT, SSO)

Last Updated: December 4, 2025
Version: 1.0.0
Status: 🟢 Production Ready (Phase 1)
Maintainer: DevOps & Engineering Team
License: Proprietary - All Rights Reserved