Internal enterprise project management platform — task management, time tracking, team capacity, and payroll-ready reporting for organizations with department-based teams.
Built with Laravel 12 + Inertia.js + React (MySQL 8).
- Strict status flow:
Backlog → To Do → In Progress → In Review → Completed, enforced server-side - Task dependencies (blocked tasks can't start until the dependency completes)
- Priority / impact / effort classification, estimated hours, due dates
- Role-aware permissions: employees work only their own tasks; managers manage their department; admins manage everything
- One active timer per user, duration computed server-side only
- Manual entries for forgotten timers
- Two-level approval: managers approve their department's entries, admins have org-wide oversight with bulk approve
- Approved entries are locked from employee editing
- Threaded comments on tasks with a 15-minute edit window
@mentionautocomplete (token format@[Name](id)) with in-app notifications- Delete rights: author, department manager, or admin
- Custom pipeline driven by a single
NotificationCreatedevent, stored in onenotificationstable (admin and user portals use separate model classes over the same table) - Triggers: mentions, task assignment, task submitted for review, profile/password changes
- Bell dropdown in every portal, auto-refreshing every 60 s (visibility-gated polling)
- Manager dashboard: team capacity bands (<60 % / 60–100 % / 100–120 % / >120 %) with overload alerts, department activity feed
- Burndown chart per project (ideal vs. actual, Chart.js) for managers and admins
- Admin time reports: totals, approved vs. pending, per-user / project / department breakdowns
- CSV: streamed, chunked, UTF-8 BOM (Excel-safe), filterable
- PDF: DomPDF, formatted report with totals, date range required
- Managers are hard-clamped server-side to their own department regardless of request parameters
| Layer | Choice |
|---|---|
| Backend | Laravel 12, Form Requests (validation), Policies (authorization), Service classes (business logic) |
| Frontend | Inertia.js + React (plain .jsx), Tailwind CSS, lucide-react icons, Chart.js |
| Auth / RBAC | Session auth, plain role column: admin / manager / employee |
| Database | MySQL 8 (tests run on in-memory SQLite), Eloquent and the query builder; the few raw expressions (selectRaw/orderByRaw for aggregates and ordering) must stay portable across MySQL and SQLite |
Feature-first backend structure:
app/
├── Core/ # BaseController, BaseService, middleware (incl. HandleInertiaRequests)
└── Features/
└── <FeatureName>/
├── Controllers/
├── Services/
├── Requests/
├── Policies/
├── Models/
└── routes/web.php # auto-loaded, may be prefix-mapped
Portal-first frontend structure:
resources/js/
├── Components/ # shared (comments stack, MentionTextarea, ui/)
└── pages/(portals)/
├── admin/ # each portal has its own layout.jsx
├── manager/
└── employee/
Conventions worth knowing before touching code:
- No
<form>submits for new code — buttons withtype="button"+ Inertiarouter.*calls (existing modals usinguseForm+_method: "PUT"spoofing for multipart are grandfathered) - Layout imports are relative (
../layout,../../layoutby depth) so pages always pick up their own portal's shell - Profile images are served through
ProfileImageController(/admin/profile-image/{f}or/user/profile-image/{f}by viewer role) — not the public storage disk - Shared prop
auth.user.profile_imagearrives as a full URL; user objects loaded by controllers carry bare filenames - Route files with static + dynamic segments: static routes (
/export,/pending) must register before/{user}-style catch-alls
- PHP 8.2+, Composer
- Node 18+, npm
- MySQL 8
git clone <repo-url> && cd zyncwork composer install npm install cp .env.example .env php artisan key:generate # configure DB_* in .env php artisan migrate --seed
php artisan serve # app npm run dev # Vite php artisan queue:work # REQUIRED — notifications are queued and silently stall without it
⚠️ The queue worker is not optional. Mentions, assignment notifications, and review alerts all dispatch through a queued listener. For local convenience you can setQUEUE_CONNECTION=syncinstead.
All seeded accounts use the password 12345678.
| Role | Notes | |
|---|---|---|
| Admin | [email protected] | Full access, no department |
| Manager | [email protected] | Manager of the seeded "General" department |
| Employee | [email protected] | Member of "General" |
The seeder also creates a few sample projects in "General". There is no seeded inactive account; to test suspension, set is_active = false on a user. Suspension takes effect on that user's next request.
npm run buildand test the built assets before shipping — stale builds crash on newer pages- Run
php artisan queue:workunder a supervisor (systemd / Supervisor) in production APP_DEBUG=false, configureMAIL_*if email is enabled later- The codebase is Linux-casing-safe (import paths verified against on-disk casing)
- Real-time notifications via Laravel Reverb (the
NotificationCreatedevent is broadcast-ready — addShouldBroadcast) - Time-log rejection with reason + employee-visible feedback
- Admin per-user weekly timesheet view
- "Reply to your comment" notifications
- Improved Arabic glyph shaping in PDF exports
- Live "who's working now" timer presence on the manager dashboard