See who is free next week and book them, in Filament
A web agency has 42 people and a dozen projects. On Friday a client signs: the Northwind web shop needs 40 more hours of work over the next two weeks, starting Monday. The manager opens the spreadsheet where everyone's weeks are planned, scrolls across eight tabs, and asks in the team chat who has time. Two people say "a bit". One of them, it turns out, is already at 105%.
This article does the same planning with Warp Capacity: a planner of people and weeks, coloured by how full each week is, a search for who is free, a booking made by dragging, and suggestions for the person who has too much. All pictures are from the live demo.
The scene: everyone's weeks on one screen
The planner lists the people, grouped by department, with a row of weeks for each. The bars are their bookings. The number above each week is how full that week is: green has room, blue is full, red is over 100%.
Step 1: register your people and projects
Warp Capacity plans your own models. The demo registers its employees and projects like this:
use Qalainau\FilamentWarpCapacity\FilamentWarpCapacityPlugin;
->plugin(
FilamentWarpCapacityPlugin::make()
->people(Employee::class, title: 'name', group: 'department', query: fn ($query) => $query->where('active', true))
->projects(Project::class, title: 'name', subtitle: 'client', query: fn ($query) => $query->where('archived', false))
->currency('USD')
)
group puts people under a heading (a department, an office), and query leaves out people who have left and projects that are archived. The panel gets a Planner and the pages around it. Everyone works Monday to Friday, 8 hours a day, until you give them their own hours.
Step 2: find who is free
Find who is free asks for two dates and the free hours needed. The manager enters Monday to Friday of the week after, and 40 hours.
The planner now shows only the 11 people who have that much time, scrolled to the first date, with their free hours under each name.
Step 3: book by dragging
Ava Thompson has the time. The manager drags across her empty weeks, and a window asks for the project and how much.
Bars can be dragged to another week or another person afterwards, and their ends pulled to make them longer or shorter. Hold Alt to copy.
Step 4: help the person who has too much
Lily's row has a red scales button. It lists ways out for each booking in her overbooked weeks: give it to someone who is free for the whole booking, move it later by the smallest shift that helps, or cut the hours a day.
The same search in code
The search behind the button is also a class, for a Slack command or a staffing report:
use Qalainau\FilamentWarpCapacity\Availability;
$free = Availability::find(
from: '2026-11-30',
to: '2026-12-11',
hours: 40,
);
// The people with the most free time first
$free->first();
// ['name' => ..., 'role' => ..., 'capacity' => 4800, 'booked' => 0, 'free' => 4800, 'free_percent' => 100, ...]
// capacity, booked and free are minutes
Availability does not check permissions, so check them yourself where you call it.
Other scenes
- A role before a name: book "a designer" as a placeholder while hiring, and replace it with a person later.
- The pitch you might win: plan it in a scenario, see who it would overload, and leave the real plan alone.
- A client delays the start: shift the whole project by a week in one move.
- Months instead of weeks, in person-months, for the yearly plan.
Limits worth knowing
- Free time counts tentative projects and waiting requests as booked.
- A search covers at most 366 days.
- The suggestions for an overbooked person only use confirmed work: requests, tentative projects and bookings that come from your own data (
Bookings::sync()) are not suggested. - If someone else changed the same person's bookings first, your change is not saved; the planner says so and reads the plan again.
Try it
Open the planner demo, press Find who is free, then drag across someone's empty weeks. Press a red scales button to see the suggestions. No sign-up, and the data is reset every hour.