setSearch(e.target.value)} className="pl-10" />
All Scheduled In Progress Completed
{filtered.length === 0 && !isLoading ? ( ) : (
Task Guard Client Date Time Priority Status Actions {filtered.map(t => (

{t.title}

{t.location &&

{t.location}

}
{t.guard_name || '—'} {t.client_name || '—'} {t.shift_date ? format(new Date(t.shift_date), 'MMM d, yyyy') : '—'} {t.start_time && t.end_time ? `${t.start_time} - ${t.end_time}` : '—'}
))}
)} {editing ? 'Edit Task' : 'New Task'}
setForm({...form, title: e.target.value})} required />