migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Modules\HRM\Http\Requests\SalaryGenerate;
use Illuminate\Foundation\Http\FormRequest;
class SalaryGenerateStoreRequest extends FormRequest
{
public function rules(): array
{
return [
'employee_id' => ['required', 'integer', 'exists:users,id'],
'month' => ['required', 'regex:/^\d{4}-(0[1-9]|1[0-2])$/'],
'basic_salary' => ['required', 'numeric', 'min:0'],
'total_earnings' => ['nullable', 'numeric', 'min:0'],
'total_deductions' => ['nullable', 'numeric', 'min:0'],
'overtime_hours' => ['nullable', 'numeric', 'min:0'],
'overtime_amount' => ['nullable', 'numeric', 'min:0'],
'net_salary' => ['required', 'numeric', 'min:0'],
'generated_date' => ['nullable', 'date'],
'generated_by' => ['nullable', 'integer', 'exists:users,id'],
'status' => ['required', 'in:pending,approved,paid'],
'salary_breakdown' => ['nullable'],
];
}
public function authorize(): bool
{
return true;
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace Modules\HRM\Http\Requests\SalaryGenerate;
use Illuminate\Foundation\Http\FormRequest;
class SalaryGenerateUpdateRequest extends FormRequest
{
public function rules(): array
{
return [
'employee_id' => ['required', 'integer', 'exists:users,id'],
'month' => ['required', 'regex:/^\d{4}-(0[1-9]|1[0-2])$/'],
'basic_salary' => ['required', 'numeric', 'min:0'],
'total_earnings' => ['nullable', 'numeric', 'min:0'],
'total_deductions' => ['nullable', 'numeric', 'min:0'],
'overtime_hours' => ['nullable', 'numeric', 'min:0'],
'overtime_amount' => ['nullable', 'numeric', 'min:0'],
'net_salary' => ['required', 'numeric', 'min:0'],
'generated_date' => ['nullable', 'date'],
'generated_by' => ['nullable', 'integer', 'exists:users,id'],
'status' => ['required', 'in:pending,approved,paid'],
'salary_breakdown' => ['nullable'],
];
}
public function authorize(): bool
{
return true;
}
}