Skip to content

Commit

Permalink
Update form labels in entity classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Feb 28, 2024
1 parent e0b47c6 commit ab0a952
Show file tree
Hide file tree
Showing 17 changed files with 60 additions and 60 deletions.
8 changes: 4 additions & 4 deletions Entities/Department.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public function structure($structure): array
{
$structure['table'] = ['title', 'slug', 'lead', 'parent', 'status'];
$structure['form'] = [
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['title']],
['label' => 'Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Lead', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['slug', 'lead']],
['label' => 'Status', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['parent', 'status']],
['label' => 'Department Title', 'class' => 'col-span-full', 'fields' => ['title']],
['label' => 'Department Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Department Lead', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['slug', 'lead']],
['label' => 'Department Status', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['parent', 'status']],
];
$structure['filter'] = ['title', 'slug', 'lead', 'status'];

Expand Down
8 changes: 4 additions & 4 deletions Entities/Education.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public function structure($structure): array

$structure['table'] = ['employee_id', 'school', 'degree', 'field', 'finished'];
$structure['form'] = [
['label' => 'School', 'class' => 'col-span-full', 'fields' => ['school']],
['label' => 'Employee', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['employee_id', 'field', 'result']],
['label' => 'Result', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['result_type', 'finished']],
['label' => 'Notes', 'class' => 'col-span-full', 'fields' => ['notes', 'interest']],
['label' => 'School Information', 'class' => 'col-span-full', 'fields' => ['school']],
['label' => 'School Employee', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['employee_id', 'field', 'result']],
['label' => 'School Result', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['result_type', 'finished']],
['label' => 'School Notes', 'class' => 'col-span-full', 'fields' => ['notes', 'interest']],
];
$structure['filter'] = ['employee_id', 'school', 'degree', 'field', 'finished'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public function structure($structure): array

$structure['table'] = ['user_id', 'employee_id', 'designation', 'department', 'location', 'termination_date', 'date_of_birth', 'status'];
$structure['form'] = [
['label' => 'Employee', 'class' => 'col-span-full', 'fields' => ['employee_id']],
['label' => 'Seeting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['designation', 'department', 'location', 'hiring_source', 'termination_date', 'date_of_birth']],
['label' => 'Seeting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['user_id', 'reporting_to', 'pay_rate', 'pay_type', 'type', 'status']],
['label' => 'Employee Information', 'class' => 'col-span-full', 'fields' => ['employee_id']],
['label' => 'Employee Bio Info', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['designation', 'department', 'location', 'hiring_source', 'termination_date', 'date_of_birth']],
['label' => 'Employee Other Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['user_id', 'reporting_to', 'pay_rate', 'pay_type', 'type', 'status']],
];
$structure['filter'] = ['user_id', 'employee_id', 'designation', 'department', 'location', 'status'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/EmployeePerformance.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public function structure($structure): array

$structure['table'] = ['employee_id', 'reporting_to', 'completion_date', 'supervisor', 'type', 'performance_date'];
$structure['form'] = [
['label' => 'Employee', 'class' => 'col-span-full', 'fields' => ['employee_id']],
['label' => 'Details', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['reporting_to', 'job_knowledge', 'work_quality', 'attendance', 'communication', 'dependablity', 'reviewer', 'comments', 'completion_date']],
['label' => 'Others', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['goal_description', 'employee_assessment', 'supervisor', 'supervisor_assessment', 'type', 'performance_date']],
['label' => 'Employee Performance', 'class' => 'col-span-full', 'fields' => ['employee_id']],
['label' => 'Employee Performance Details', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['reporting_to', 'job_knowledge', 'work_quality', 'attendance', 'communication', 'dependablity', 'reviewer', 'comments', 'completion_date']],
['label' => 'Other Employee Performance Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['goal_description', 'employee_assessment', 'supervisor', 'supervisor_assessment', 'type', 'performance_date']],
];
$structure['filter'] = ['employee_id', 'reporting_to', 'completion_date', 'supervisor', 'performance_date'];

Expand Down
8 changes: 4 additions & 4 deletions Entities/Holiday.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public function structure($structure): array
{
$structure['table'] = ['title', 'start', 'end', 'range_status'];
$structure['form'] = [
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['title']],
['label' => 'Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Date', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['start', 'end']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['range_status']],
['label' => 'Holiday Title', 'class' => 'col-span-full', 'fields' => ['title']],
['label' => 'Holiday Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Holiday Date', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['start', 'end']],
['label' => 'Other Holiday Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['range_status']],
];
$structure['filter'] = ['title', 'start', 'end', 'range_status'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/LeaveEncashmentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public function structure($structure): array

$structure['table'] = ['user_id', 'leave_id', 'approved_by', 'approval_status_id', 'encash_days', 'forward_days', 'amount', 'total', 'f_year'];
$structure['form'] = [
['label' => 'Leave', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Encashment', 'class' => 'col-span-full', 'fields' => ['user_id', 'approved_by', 'approval_status_id', 'encash_days']],
['label' => 'setting', 'class' => 'col-span-full', 'fields' => ['forward_days', 'amount', 'total', 'f_year']],
['label' => 'Leave Encashment Request', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Leave Encashment Request Detail', 'class' => 'col-span-full', 'fields' => ['user_id', 'approved_by', 'approval_status_id', 'encash_days']],
['label' => 'Leave Encashment Request Setting', 'class' => 'col-span-full', 'fields' => ['forward_days', 'amount', 'total', 'f_year']],
];
$structure['filter'] = ['user_id', 'leave_id', 'approved_by', 'approval_status_id'];

Expand Down
8 changes: 4 additions & 4 deletions Entities/LeaveEntitlement.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public function structure($structure): array

$structure['table'] = ['user_id', 'leave_id', 'trn_id', 'trn_type', 'day_in', 'day_out', 'f_year'];
$structure['form'] = [
['label' => 'Leave', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Leave Entitlement', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['user_id', 'trn_id', 'trn_type', 'f_year']],
['label' => 'Day', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['day_in', 'day_out']],
['label' => 'Leave Entitlement', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Leave Entitlement Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Leave Entitlement Detail', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['user_id', 'trn_id', 'trn_type', 'f_year']],
['label' => 'Leave Entitlement Day', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['day_in', 'day_out']],
];
$structure['filter'] = ['user_id', 'leave_id', 'trn_id', 'day_in', 'day_out', 'f_year'];

Expand Down
12 changes: 6 additions & 6 deletions Entities/LeavePolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ public function structure($structure): array

$structure['table'] = ['leave_id', 'days', 'apply_limit', 'employee_type', 'department_id', 'location_id', 'designation_id', 'halfday_enable'];
$structure['form'] = [
['label' => 'Leave', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Leave Policy', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['days', 'color', 'apply_limit', 'employee_type', 'department_id', 'location_id']],
['label' => 'Leave Policy', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['designation_id', 'gender', 'marital', 'f_year', 'apply_for_new_users']],
['label' => 'Leave Policy', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['carryover_days', 'carryover_uses_limit', 'encashment_based_on', 'forward_default']],
['label' => 'Leave Policy', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['applicable_from_days', 'accrued_amount', 'accrued_max_days', 'halfday_enable']],
['label' => 'Leave Policy', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Leave Policy Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Leave Policy Date', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['days', 'color', 'apply_limit', 'employee_type', 'department_id', 'location_id']],
['label' => 'Leave Policy Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['designation_id', 'gender', 'marital', 'f_year', 'apply_for_new_users']],
['label' => 'Leave Policy Limit', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['carryover_days', 'carryover_uses_limit', 'encashment_based_on', 'forward_default']],
['label' => 'Leave Policy Range', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['applicable_from_days', 'accrued_amount', 'accrued_max_days', 'halfday_enable']],
];
$structure['filter'] = ['department_id', 'location_id', 'designation_id'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/LeavePolicySegregation.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public function structure($structure): array

$structure['table'] = ['leave_policy_id', 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
$structure['form'] = [
['label' => 'Leave Policy', 'class' => 'col-span-full', 'fields' => ['leave_policy_id']],
['label' => 'Jan-Jun', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['jan', 'feb', 'mar', 'apr', 'may', 'jun']],
['label' => 'Jul-Dec', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['jul', 'aug', 'sep', 'oct', 'nov', 'dec']],
['label' => 'Leave Policy Segregation', 'class' => 'col-span-full', 'fields' => ['leave_policy_id']],
['label' => '[Jan-Jun] Leave Policy Segregation', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['jan', 'feb', 'mar', 'apr', 'may', 'jun']],
['label' => '[Jul-Dec] Leave Policy Segregation', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['jul', 'aug', 'sep', 'oct', 'nov', 'dec']],
];
$structure['filter'] = ['leave_policy_id'];

Expand Down
10 changes: 5 additions & 5 deletions Entities/LeaveRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public function structure($structure): array

$structure['table'] = ['user_id', 'leave_id', 'leave_entitlement_id', 'day_status_id', 'days', 'start_date', 'end_date', 'last_status'];
$structure['form'] = [
['label' => 'Leave', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Leave Request', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['user_id', 'leave_entitlement_id', 'day_status_id']],
['label' => 'Dates', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['start_date', 'end_date']],
['label' => 'Last Status', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['last_status']],
['label' => 'Reason', 'class' => 'col-span-full', 'fields' => ['reason']],
['label' => 'Leave Request', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Leave Request Detail', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['user_id', 'leave_entitlement_id', 'day_status_id']],
['label' => 'Leave Request Dates', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['start_date', 'end_date']],
['label' => 'Leave Request Last Status', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['last_status']],
['label' => 'Leave Request Reason', 'class' => 'col-span-full', 'fields' => ['reason']],
];
$structure['filter'] = ['user_id', 'leave_id', 'leave_entitlement_id', 'day_status_id'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/LeaveRequestDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public function structure($structure): array

$structure['table'] = ['leave_request_id', 'leave_approval_status_id', 'workingday_status', 'user_id', 'f_year', 'leave_date'];
$structure['form'] = [
['label' => 'Leave Request', 'class' => 'col-span-full', 'fields' => ['leave_request_id']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['leave_approval_status_id', 'workingday_status', 'user_id']],
['label' => 'Main', 'class' => 'w-/12', 'fields' => ['f_year', 'leave_date']],
['label' => 'Leave Request Detail', 'class' => 'col-span-full', 'fields' => ['leave_request_id']],
['label' => 'Leave Request Detail Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['leave_approval_status_id', 'workingday_status', 'user_id']],
['label' => 'Leave Request Detail Date', 'class' => 'w-/12', 'fields' => ['f_year', 'leave_date']],
];
$structure['filter'] = ['leave_request_id', 'leave_approval_status_id', 'workingday_status', 'user_id'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/LeaveUnpaid.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public function structure($structure): array

$structure['table'] = ['leave_id', 'leave_request_id', 'leave_approval_status_id', 'user_id', 'days', 'amount', 'total', 'f_year'];
$structure['form'] = [
['label' => 'Leave', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['leave_request_id', 'leave_approval_status_id', 'user_id', 'days']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['amount', 'total', 'f_year']],
['label' => 'Leave Unpaid', 'class' => 'col-span-full', 'fields' => ['leave_id']],
['label' => 'Leave Unpaid Detail', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['leave_request_id', 'leave_approval_status_id', 'user_id', 'days']],
['label' => 'Leave Unpaid Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['amount', 'total', 'f_year']],
];
$structure['filter'] = ['leave_id', 'leave_request_id', 'leave_approval_status_id', 'user_id'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/PayrollAdditionalAllowanceDeduction.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public function structure($structure): array
$structure['table'] = ['pay_item_id', 'pay_item_amount', 'empid', 'pay_item_add_or_deduct', 'payrun_id', 'note'];
$structure['form'] = [
['label' => 'Pay Item', 'class' => 'col-span-full', 'fields' => ['pay_item_id']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['pay_item_amount', 'empid']],
['label' => 'Other', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['pay_item_add_or_deduct', 'payrun_id']],
['label' => 'Note', 'class' => 'col-span-full', 'fields' => ['note']],
['label' => 'Payroll Additional Allowance Deduction Detail', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['pay_item_amount', 'empid']],
['label' => 'Other Payroll Additional Allowance Deduction Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['pay_item_add_or_deduct', 'payrun_id']],
['label' => 'Payroll Additional Allowance Deduction Note', 'class' => 'col-span-full', 'fields' => ['note']],
];
$structure['filter'] = ['pay_item_id', 'pay_item_amount', 'empid', 'pay_item_add_or_deduct', 'payrun_id'];

Expand Down
4 changes: 2 additions & 2 deletions Entities/PayrollCalendarTypeSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public function structure($structure): array
$structure['table'] = ['pay_calendar_id', 'cal_type', 'pay_day', 'custom_month_day', 'pay_day_mode'];
$structure['form'] = [
['label' => 'Pay Calendar', 'class' => 'col-span-full', 'fields' => ['pay_calendar_id']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['cal_type', 'pay_day']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['custom_month_day', 'pay_day_mode']],
['label' => 'Payroll Calendar Type Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['cal_type', 'pay_day']],
['label' => 'Payroll Calendar Type More Info', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['custom_month_day', 'pay_day_mode']],
];
$structure['filter'] = ['pay_calendar_id', 'cal_type', 'pay_day'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/PayrollPayrun.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public function structure($structure): array

$structure['table'] = ['pay_cal_id', 'payment_date', 'from_date', 'to_date', 'approve_status', 'jr_tran_id'];
$structure['form'] = [
['label' => 'Pay Cal', 'class' => 'col-span-full', 'fields' => ['pay_cal_id']],
['label' => 'Payment', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['payment_date', 'from_date', 'to_date']],
['label' => 'Date', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['approve_status', 'jr_tran_id']],
['label' => 'Payroll Payrun Pay Cal', 'class' => 'col-span-full', 'fields' => ['pay_cal_id']],
['label' => 'Payroll Payrun Payment', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['payment_date', 'from_date', 'to_date']],
['label' => 'Payroll Payrun Date', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['approve_status', 'jr_tran_id']],
];
$structure['filter'] = ['pay_cal_id', 'payment_date', 'from_date', 'to_date', 'approve_status', 'jr_tran_id'];

Expand Down
Loading

0 comments on commit ab0a952

Please sign in to comment.