make(Illuminate\Contracts\Console\Kernel::class); $kernel->bootstrap(); use App\Models\User; use App\Models\EmployeeSalary; use App\Services\PayrollService; use Carbon\Carbon; $user = User::where('name', 'sdfsdf')->first(); if (!$user) { echo "User not found!\n"; exit; } $startDate = '2026-01-11'; $endDate = '2026-01-25'; // Check their contract/salary data $salary = EmployeeSalary::where('employee_id', $user->id)->first(); echo "====== USER DATA =======\n"; echo "Name: {$user->name}\n"; echo "Contract Setup: " . ($salary ? "Exists (Basic: {$salary->basic_salary})" : "MISSING") . "\n"; if ($salary) { echo "Fixed SSS: {$salary->sss_fixed}\n"; echo "Fixed PhilHealth: {$salary->philhealth_fixed}\n"; echo "Fixed PagIBIG: {$salary->pagibig_fixed}\n"; } echo "\n====== RUNNING PAYROLL SIMULATION ======\n"; $service = new PayrollService(); $result = $service->calculateForEmployee($user, $startDate, $endDate); echo json_encode($result, JSON_PRETTY_PRINT); echo "\n";