@php
$assignedEmployeeIds = old('employee_ids', $deduction->employees->pluck('id')->toArray());
@endphp
@forelse($employees as $employee)
id, $assignedEmployeeIds) ? 'checked' : '' }}
class="w-4 h-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500">
@empty
No employees found.
@endforelse
Select the employees who should have this deduction applied.