<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;

class DbStructureServiceProvider extends ServiceProvider
{
    public function boot()
    {
$dbs_attendances = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'employee_id_req'=>'*',
            'employee_id_title'=>'Employee',
            'employee_id_max'=>'20',
            'employee_id_validateas'=>'required|exists:employees,id',
            'employee_id_html5_req'=>'required',
            'employee_id_html5_type'=>'text',
            'employee_id_unique'=>'|unique:attendances,employee_id,NULL,id,deleted_at,NULL',
            'employee_id_unique_for_update'=>'|unique:attendances,employee_id,NULL_ID,id,deleted_at,NULL',
            
            
            'attendance_date_req'=>'*',
            'attendance_date_title'=>'Attendance Date',
            'attendance_date_max'=>'',
            'attendance_date_validateas'=>'required|date|date_format:Y-m-d',
            'attendance_date_html5_req'=>'required',
            'attendance_date_html5_type'=>'text',
            'attendance_date_unique'=>'',
            'attendance_date_unique_for_update'=>'',
            
            
            'check_in_req'=>'*',
            'check_in_title'=>'Check In',
            'check_in_max'=>'',
            'check_in_validateas'=>'required|regex:/^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$/',
            'check_in_html5_req'=>'required',
            'check_in_html5_type'=>'time',
            'check_in_unique'=>'',
            'check_in_unique_for_update'=>'',
            
            
            'check_out_req'=>'*',
            'check_out_title'=>'Check Out',
            'check_out_max'=>'',
            'check_out_validateas'=>'required|regex:/^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$/',
            'check_out_html5_req'=>'required',
            'check_out_html5_type'=>'time',
            'check_out_unique'=>'',
            'check_out_unique_for_update'=>'',
            
            
            'working_hours_req'=>'*',
            'working_hours_title'=>'Working Hours',
            'working_hours_max'=>'10',
            'working_hours_validateas'=>'required|numeric|between:-99999999.99,99999999.99',
            'working_hours_html5_req'=>'required',
            'working_hours_html5_type'=>'number',
            'working_hours_unique'=>'',
            'working_hours_unique_for_update'=>'',
            'working_hours_scale'=>'2',
            
            'overtime_hours_req'=>'',
            'overtime_hours_title'=>'Overtime Hours',
            'overtime_hours_max'=>'10',
            'overtime_hours_validateas'=>'nullable|numeric|between:-99999999.99,99999999.99',
            'overtime_hours_html5_req'=>'',
            'overtime_hours_html5_type'=>'number',
            'overtime_hours_unique'=>'',
            'overtime_hours_unique_for_update'=>'',
            'overtime_hours_scale'=>'2',
            
            'late_minutes_req'=>'',
            'late_minutes_title'=>'Late Minutes',
            'late_minutes_max'=>'11',
            'late_minutes_validateas'=>'nullable|integer|digits_between:0,11',
            'late_minutes_html5_req'=>'',
            'late_minutes_html5_type'=>'number',
            'late_minutes_unique'=>'',
            'late_minutes_unique_for_update'=>'',
            
            
            'status_req'=>'',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'nullable|in:Active,Inactive',
            'status_html5_req'=>'',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'remarks_req'=>'',
            'remarks_title'=>'Remarks',
            'remarks_max'=>'500',
            'remarks_validateas'=>'max:500',
            'remarks_html5_req'=>'',
            'remarks_html5_type'=>'text',
            'remarks_unique'=>'',
            'remarks_unique_for_update'=>'',
            
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_attendances', $dbs_attendances);
    $dbs_clients = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'company_name_req'=>'*',
            'company_name_title'=>'Company Name',
            'company_name_max'=>'255',
            'company_name_validateas'=>'required|max:255',
            'company_name_html5_req'=>'required',
            'company_name_html5_type'=>'text',
            'company_name_unique'=>'',
            'company_name_unique_for_update'=>'',
            
            
            'owner_name_req'=>'*',
            'owner_name_title'=>'Owner Name',
            'owner_name_max'=>'255',
            'owner_name_validateas'=>'required|max:255',
            'owner_name_html5_req'=>'required',
            'owner_name_html5_type'=>'text',
            'owner_name_unique'=>'',
            'owner_name_unique_for_update'=>'',
            
            
            'email_req'=>'*',
            'email_title'=>'Email',
            'email_max'=>'255',
            'email_validateas'=>'required|email|max:255',
            'email_html5_req'=>'required',
            'email_html5_type'=>'email',
            'email_unique'=>'|unique:clients,email,NULL,id,deleted_at,NULL',
            'email_unique_for_update'=>'|unique:clients,email,NULL_ID,id,deleted_at,NULL',
            
            
            'phone_req'=>'',
            'phone_title'=>'Phone',
            'phone_max'=>'50',
            'phone_validateas'=>'max:50',
            'phone_html5_req'=>'',
            'phone_html5_type'=>'text',
            'phone_unique'=>'',
            'phone_unique_for_update'=>'',
            
            
            'logo_req'=>'',
            'logo_title'=>'Logo',
            'logo_max'=>'255',
            'logo_validateas'=>'nullable|image64',
            'logo_html5_req'=>'',
            'logo_html5_type'=>'file',
            'logo_unique'=>'',
            'logo_unique_for_update'=>'',
            
            
            'address_req'=>'',
            'address_title'=>'Address',
            'address_max'=>'1000',
            'address_validateas'=>'max:1000',
            'address_html5_req'=>'',
            'address_html5_type'=>'text',
            'address_unique'=>'',
            'address_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_clients', $dbs_clients);
    $dbs_departments = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'name_req'=>'*',
            'name_title'=>'Name',
            'name_max'=>'255',
            'name_validateas'=>'required|max:255',
            'name_html5_req'=>'required',
            'name_html5_type'=>'text',
            'name_unique'=>'|unique:departments,name,NULL,id,deleted_at,NULL',
            'name_unique_for_update'=>'|unique:departments,name,NULL_ID,id,deleted_at,NULL',
            
            
            'description_req'=>'',
            'description_title'=>'Description',
            'description_max'=>'1000',
            'description_validateas'=>'max:1000',
            'description_html5_req'=>'',
            'description_html5_type'=>'text',
            'description_unique'=>'',
            'description_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_departments', $dbs_departments);
    $dbs_designations = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'department_id_req'=>'*',
            'department_id_title'=>'Department',
            'department_id_max'=>'20',
            'department_id_validateas'=>'required|exists:departments,id',
            'department_id_html5_req'=>'required',
            'department_id_html5_type'=>'text',
            'department_id_unique'=>'',
            'department_id_unique_for_update'=>'',
            
            
            'name_req'=>'*',
            'name_title'=>'Name',
            'name_max'=>'255',
            'name_validateas'=>'required|max:255',
            'name_html5_req'=>'required',
            'name_html5_type'=>'text',
            'name_unique'=>'|unique:designations,name,NULL,id,deleted_at,NULL',
            'name_unique_for_update'=>'|unique:designations,name,NULL_ID,id,deleted_at,NULL',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_designations', $dbs_designations);
    $dbs_employees = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'employee_code_req'=>'*',
            'employee_code_title'=>'Employee Code',
            'employee_code_max'=>'50',
            'employee_code_validateas'=>'required|max:50',
            'employee_code_html5_req'=>'required',
            'employee_code_html5_type'=>'text',
            'employee_code_unique'=>'|unique:employees,employee_code,NULL,id,deleted_at,NULL',
            'employee_code_unique_for_update'=>'|unique:employees,employee_code,NULL_ID,id,deleted_at,NULL',
            
            
            'first_name_req'=>'*',
            'first_name_title'=>'First Name',
            'first_name_max'=>'255',
            'first_name_validateas'=>'required|max:255',
            'first_name_html5_req'=>'required',
            'first_name_html5_type'=>'text',
            'first_name_unique'=>'',
            'first_name_unique_for_update'=>'',
            
            
            'last_name_req'=>'*',
            'last_name_title'=>'Last Name',
            'last_name_max'=>'255',
            'last_name_validateas'=>'required|max:255',
            'last_name_html5_req'=>'required',
            'last_name_html5_type'=>'text',
            'last_name_unique'=>'',
            'last_name_unique_for_update'=>'',
            
            
            'email_req'=>'*',
            'email_title'=>'Email',
            'email_max'=>'255',
            'email_validateas'=>'required|email|max:255',
            'email_html5_req'=>'required',
            'email_html5_type'=>'email',
            'email_unique'=>'|unique:employees,email,NULL,id,deleted_at,NULL',
            'email_unique_for_update'=>'|unique:employees,email,NULL_ID,id,deleted_at,NULL',
            
            
            'phone_req'=>'',
            'phone_title'=>'Phone',
            'phone_max'=>'50',
            'phone_validateas'=>'max:50',
            'phone_html5_req'=>'',
            'phone_html5_type'=>'text',
            'phone_unique'=>'',
            'phone_unique_for_update'=>'',
            
            
            'cnic_req'=>'*',
            'cnic_title'=>'Cnic',
            'cnic_max'=>'50',
            'cnic_validateas'=>'required|max:50',
            'cnic_html5_req'=>'required',
            'cnic_html5_type'=>'text',
            'cnic_unique'=>'|unique:employees,cnic,NULL,id,deleted_at,NULL',
            'cnic_unique_for_update'=>'|unique:employees,cnic,NULL_ID,id,deleted_at,NULL',
            
            
            'gender_req'=>'*',
            'gender_title'=>'Gender',
            'gender_max'=>'',
            'gender_validateas'=>'required|in:male,female,other',
            'gender_html5_req'=>'required',
            'gender_html5_type'=>'text',
            'gender_unique'=>'',
            'gender_unique_for_update'=>'',
            'gender_array'=>array('male'=>'male','female'=>'female','other'=>'other',),
            
            'date_of_birth_req'=>'*',
            'date_of_birth_title'=>'Date Of Birth',
            'date_of_birth_max'=>'',
            'date_of_birth_validateas'=>'required|date|date_format:Y-m-d',
            'date_of_birth_html5_req'=>'required',
            'date_of_birth_html5_type'=>'text',
            'date_of_birth_unique'=>'',
            'date_of_birth_unique_for_update'=>'',
            
            
            'joining_date_req'=>'*',
            'joining_date_title'=>'Joining Date',
            'joining_date_max'=>'',
            'joining_date_validateas'=>'required|date|date_format:Y-m-d',
            'joining_date_html5_req'=>'required',
            'joining_date_html5_type'=>'text',
            'joining_date_unique'=>'',
            'joining_date_unique_for_update'=>'',
            
            
            'department_id_req'=>'*',
            'department_id_title'=>'Department',
            'department_id_max'=>'20',
            'department_id_validateas'=>'required|exists:departments,id',
            'department_id_html5_req'=>'required',
            'department_id_html5_type'=>'text',
            'department_id_unique'=>'',
            'department_id_unique_for_update'=>'',
            
            
            'designation_id_req'=>'*',
            'designation_id_title'=>'Designation',
            'designation_id_max'=>'20',
            'designation_id_validateas'=>'required|exists:designations,id',
            'designation_id_html5_req'=>'required',
            'designation_id_html5_type'=>'text',
            'designation_id_unique'=>'',
            'designation_id_unique_for_update'=>'',
            
            
            'shift_id_req'=>'*',
            'shift_id_title'=>'Shift',
            'shift_id_max'=>'20',
            'shift_id_validateas'=>'required|exists:shifts,id',
            'shift_id_html5_req'=>'required',
            'shift_id_html5_type'=>'text',
            'shift_id_unique'=>'',
            'shift_id_unique_for_update'=>'',
            
            
            'employment_type_req'=>'*',
            'employment_type_title'=>'Employment Type',
            'employment_type_max'=>'',
            'employment_type_validateas'=>'required|in:full_time,part_time,contract,intern',
            'employment_type_html5_req'=>'required',
            'employment_type_html5_type'=>'text',
            'employment_type_unique'=>'',
            'employment_type_unique_for_update'=>'',
            'employment_type_array'=>array('full_time'=>'full_time','part_time'=>'part_time','contract'=>'contract','intern'=>'intern',),
            
            'basic_salary_req'=>'*',
            'basic_salary_title'=>'Basic Salary',
            'basic_salary_max'=>'15',
            'basic_salary_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'basic_salary_html5_req'=>'required',
            'basic_salary_html5_type'=>'number',
            'basic_salary_unique'=>'',
            'basic_salary_unique_for_update'=>'',
            'basic_salary_scale'=>'2',
            
            'bank_name_req'=>'',
            'bank_name_title'=>'Bank Name',
            'bank_name_max'=>'255',
            'bank_name_validateas'=>'max:255',
            'bank_name_html5_req'=>'',
            'bank_name_html5_type'=>'text',
            'bank_name_unique'=>'',
            'bank_name_unique_for_update'=>'',
            
            
            'bank_account_number_req'=>'',
            'bank_account_number_title'=>'Bank Account Number',
            'bank_account_number_max'=>'255',
            'bank_account_number_validateas'=>'max:255',
            'bank_account_number_html5_req'=>'',
            'bank_account_number_html5_type'=>'text',
            'bank_account_number_unique'=>'',
            'bank_account_number_unique_for_update'=>'',
            
            
            'address_req'=>'',
            'address_title'=>'Address',
            'address_max'=>'1000',
            'address_validateas'=>'max:1000',
            'address_html5_req'=>'',
            'address_html5_type'=>'text',
            'address_unique'=>'',
            'address_unique_for_update'=>'',
            
            
            'profile_picture_req'=>'',
            'profile_picture_title'=>'Profile Picture',
            'profile_picture_max'=>'255',
            'profile_picture_validateas'=>'nullable|image64',
            'profile_picture_html5_req'=>'',
            'profile_picture_html5_type'=>'file',
            'profile_picture_unique'=>'',
            'profile_picture_unique_for_update'=>'',
            
            
            'resume_req'=>'',
            'resume_title'=>'Resume',
            'resume_max'=>'255',
            'resume_validateas'=>'max:255',
            'resume_html5_req'=>'',
            'resume_html5_type'=>'text',
            'resume_unique'=>'',
            'resume_unique_for_update'=>'',
            
            
            'skills_req'=>'*',
            'skills_title'=>'Skills',
            'skills_max'=>'',
            'skills_validateas'=>'required|exists:skills,id',
            'skills_html5_req'=>'required',
            'skills_html5_type'=>'text',
            'skills_unique'=>'',
            'skills_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_employees', $dbs_employees);
    $dbs_leave_types = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'name_req'=>'*',
            'name_title'=>'Name',
            'name_max'=>'255',
            'name_validateas'=>'required|max:255',
            'name_html5_req'=>'required',
            'name_html5_type'=>'text',
            'name_unique'=>'|unique:leave_types,name,NULL,id,deleted_at,NULL',
            'name_unique_for_update'=>'|unique:leave_types,name,NULL_ID,id,deleted_at,NULL',
            
            
            'allowed_days_req'=>'*',
            'allowed_days_title'=>'Allowed Days',
            'allowed_days_max'=>'11',
            'allowed_days_validateas'=>'required|integer|digits_between:1,11',
            'allowed_days_html5_req'=>'required',
            'allowed_days_html5_type'=>'number',
            'allowed_days_unique'=>'',
            'allowed_days_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_leave_types', $dbs_leave_types);
    $dbs_leaves = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'employee_id_req'=>'*',
            'employee_id_title'=>'Employee',
            'employee_id_max'=>'20',
            'employee_id_validateas'=>'required|exists:employees,id',
            'employee_id_html5_req'=>'required',
            'employee_id_html5_type'=>'text',
            'employee_id_unique'=>'',
            'employee_id_unique_for_update'=>'',
            
            
            'leave_type_id_req'=>'*',
            'leave_type_id_title'=>'Leave Type',
            'leave_type_id_max'=>'20',
            'leave_type_id_validateas'=>'required|exists:leave_types,id',
            'leave_type_id_html5_req'=>'required',
            'leave_type_id_html5_type'=>'text',
            'leave_type_id_unique'=>'',
            'leave_type_id_unique_for_update'=>'',
            
            
            'from_date_req'=>'*',
            'from_date_title'=>'From Date',
            'from_date_max'=>'',
            'from_date_validateas'=>'required|date|date_format:Y-m-d',
            'from_date_html5_req'=>'required',
            'from_date_html5_type'=>'text',
            'from_date_unique'=>'',
            'from_date_unique_for_update'=>'',
            
            
            'to_date_req'=>'*',
            'to_date_title'=>'To Date',
            'to_date_max'=>'',
            'to_date_validateas'=>'required|date|date_format:Y-m-d',
            'to_date_html5_req'=>'required',
            'to_date_html5_type'=>'text',
            'to_date_unique'=>'',
            'to_date_unique_for_update'=>'',
            
            
            'total_days_req'=>'*',
            'total_days_title'=>'Total Days',
            'total_days_max'=>'11',
            'total_days_validateas'=>'required|integer|digits_between:1,11',
            'total_days_html5_req'=>'required',
            'total_days_html5_type'=>'number',
            'total_days_unique'=>'',
            'total_days_unique_for_update'=>'',
            
            
            'reason_req'=>'',
            'reason_title'=>'Reason',
            'reason_max'=>'1000',
            'reason_validateas'=>'max:1000',
            'reason_html5_req'=>'',
            'reason_html5_type'=>'text',
            'reason_unique'=>'',
            'reason_unique_for_update'=>'',
            
            
            'attachment_req'=>'',
            'attachment_title'=>'Attachment',
            'attachment_max'=>'255',
            'attachment_validateas'=>'nullable|file|mimes:pdf,doc,docx,xls,xlsx,csv,txt,rtf,ppt,pptx,zip,rar,7z,jpg,jpeg,png,webp',
            'attachment_html5_req'=>'',
            'attachment_html5_type'=>'file',
            'attachment_unique'=>'',
            'attachment_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'approved_by_req'=>'*',
            'approved_by_title'=>'Approved By',
            'approved_by_max'=>'20',
            'approved_by_validateas'=>'required|exists:users,id',
            'approved_by_html5_req'=>'required',
            'approved_by_html5_type'=>'text',
            'approved_by_unique'=>'',
            'approved_by_unique_for_update'=>'',
            
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_leaves', $dbs_leaves);
    $dbs_loans = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'employee_id_req'=>'*',
            'employee_id_title'=>'Employee',
            'employee_id_max'=>'20',
            'employee_id_validateas'=>'required|exists:employees,id',
            'employee_id_html5_req'=>'required',
            'employee_id_html5_type'=>'text',
            'employee_id_unique'=>'',
            'employee_id_unique_for_update'=>'',
            
            
            'amount_req'=>'*',
            'amount_title'=>'Amount',
            'amount_max'=>'15',
            'amount_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'amount_html5_req'=>'required',
            'amount_html5_type'=>'number',
            'amount_unique'=>'',
            'amount_unique_for_update'=>'',
            'amount_scale'=>'2',
            
            'remaining_amount_req'=>'*',
            'remaining_amount_title'=>'Remaining Amount',
            'remaining_amount_max'=>'15',
            'remaining_amount_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'remaining_amount_html5_req'=>'required',
            'remaining_amount_html5_type'=>'number',
            'remaining_amount_unique'=>'',
            'remaining_amount_unique_for_update'=>'',
            'remaining_amount_scale'=>'2',
            
            'monthly_deduction_req'=>'*',
            'monthly_deduction_title'=>'Monthly Deduction',
            'monthly_deduction_max'=>'15',
            'monthly_deduction_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'monthly_deduction_html5_req'=>'required',
            'monthly_deduction_html5_type'=>'number',
            'monthly_deduction_unique'=>'',
            'monthly_deduction_unique_for_update'=>'',
            'monthly_deduction_scale'=>'2',
            
            'issue_date_req'=>'*',
            'issue_date_title'=>'Issue Date',
            'issue_date_max'=>'',
            'issue_date_validateas'=>'required|date|date_format:Y-m-d',
            'issue_date_html5_req'=>'required',
            'issue_date_html5_type'=>'text',
            'issue_date_unique'=>'',
            'issue_date_unique_for_update'=>'',
            
            
            'attachment_req'=>'',
            'attachment_title'=>'Attachment',
            'attachment_max'=>'255',
            'attachment_validateas'=>'nullable|file|mimes:pdf,doc,docx,xls,xlsx,csv,txt,rtf,ppt,pptx,zip,rar,7z,jpg,jpeg,png,webp',
            'attachment_html5_req'=>'',
            'attachment_html5_type'=>'file',
            'attachment_unique'=>'',
            'attachment_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_loans', $dbs_loans);
    $dbs_model_has_permissions = array(
        
            'permission_id_req'=>'*',
            'permission_id_title'=>'Permission',
            'permission_id_max'=>'20',
            'permission_id_validateas'=>'required|integer|digits_between:1,20',
            'permission_id_html5_req'=>'required',
            'permission_id_html5_type'=>'number',
            'permission_id_unique'=>'',
            'permission_id_unique_for_update'=>'',
            
            
            'model_type_req'=>'*',
            'model_type_title'=>'Model Type',
            'model_type_max'=>'255',
            'model_type_validateas'=>'required|max:255',
            'model_type_html5_req'=>'required',
            'model_type_html5_type'=>'text',
            'model_type_unique'=>'',
            'model_type_unique_for_update'=>'',
            
            
            'model_id_req'=>'*',
            'model_id_title'=>'Model',
            'model_id_max'=>'20',
            'model_id_validateas'=>'required|integer|digits_between:1,20',
            'model_id_html5_req'=>'required',
            'model_id_html5_type'=>'number',
            'model_id_unique'=>'',
            'model_id_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_model_has_permissions', $dbs_model_has_permissions);
    $dbs_payroll_items = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'payroll_id_req'=>'*',
            'payroll_id_title'=>'Payroll',
            'payroll_id_max'=>'20',
            'payroll_id_validateas'=>'required|exists:payrolls,id',
            'payroll_id_html5_req'=>'required',
            'payroll_id_html5_type'=>'text',
            'payroll_id_unique'=>'',
            'payroll_id_unique_for_update'=>'',
            
            
            'item_type_req'=>'*',
            'item_type_title'=>'Item Type',
            'item_type_max'=>'',
            'item_type_validateas'=>'required|in:allowance,deduction,bonus,tax',
            'item_type_html5_req'=>'required',
            'item_type_html5_type'=>'text',
            'item_type_unique'=>'',
            'item_type_unique_for_update'=>'',
            'item_type_array'=>array('allowance'=>'allowance','deduction'=>'deduction','bonus'=>'bonus','tax'=>'tax',),
            
            'title_req'=>'*',
            'title_title'=>'Title',
            'title_max'=>'255',
            'title_validateas'=>'required|max:255',
            'title_html5_req'=>'required',
            'title_html5_type'=>'text',
            'title_unique'=>'',
            'title_unique_for_update'=>'',
            
            
            'amount_req'=>'*',
            'amount_title'=>'Amount',
            'amount_max'=>'15',
            'amount_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'amount_html5_req'=>'required',
            'amount_html5_type'=>'number',
            'amount_unique'=>'',
            'amount_unique_for_update'=>'',
            'amount_scale'=>'2',
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_payroll_items', $dbs_payroll_items);
    $dbs_payrolls = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'employee_id_req'=>'*',
            'employee_id_title'=>'Employee',
            'employee_id_max'=>'20',
            'employee_id_validateas'=>'required|exists:employees,id',
            'employee_id_html5_req'=>'required',
            'employee_id_html5_type'=>'text',
            'employee_id_unique'=>'|unique:payrolls,employee_id,NULL,id,deleted_at,NULL',
            'employee_id_unique_for_update'=>'|unique:payrolls,employee_id,NULL_ID,id,deleted_at,NULL',
            
            
            'payroll_month_req'=>'*',
            'payroll_month_title'=>'Payroll Month',
            'payroll_month_max'=>'11',
            'payroll_month_validateas'=>'required|integer|digits_between:1,11',
            'payroll_month_html5_req'=>'required',
            'payroll_month_html5_type'=>'number',
            'payroll_month_unique'=>'',
            'payroll_month_unique_for_update'=>'',
            
            
            'payroll_year_req'=>'*',
            'payroll_year_title'=>'Payroll Year',
            'payroll_year_max'=>'11',
            'payroll_year_validateas'=>'required|integer|digits_between:1,11',
            'payroll_year_html5_req'=>'required',
            'payroll_year_html5_type'=>'number',
            'payroll_year_unique'=>'',
            'payroll_year_unique_for_update'=>'',
            
            
            'basic_salary_req'=>'*',
            'basic_salary_title'=>'Basic Salary',
            'basic_salary_max'=>'15',
            'basic_salary_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'basic_salary_html5_req'=>'required',
            'basic_salary_html5_type'=>'number',
            'basic_salary_unique'=>'',
            'basic_salary_unique_for_update'=>'',
            'basic_salary_scale'=>'2',
            
            'allowances_req'=>'',
            'allowances_title'=>'Allowances',
            'allowances_max'=>'15',
            'allowances_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'allowances_html5_req'=>'',
            'allowances_html5_type'=>'number',
            'allowances_unique'=>'',
            'allowances_unique_for_update'=>'',
            'allowances_scale'=>'2',
            
            'deductions_req'=>'',
            'deductions_title'=>'Deductions',
            'deductions_max'=>'15',
            'deductions_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'deductions_html5_req'=>'',
            'deductions_html5_type'=>'number',
            'deductions_unique'=>'',
            'deductions_unique_for_update'=>'',
            'deductions_scale'=>'2',
            
            'overtime_amount_req'=>'',
            'overtime_amount_title'=>'Overtime Amount',
            'overtime_amount_max'=>'15',
            'overtime_amount_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'overtime_amount_html5_req'=>'',
            'overtime_amount_html5_type'=>'number',
            'overtime_amount_unique'=>'',
            'overtime_amount_unique_for_update'=>'',
            'overtime_amount_scale'=>'2',
            
            'bonus_req'=>'',
            'bonus_title'=>'Bonus',
            'bonus_max'=>'15',
            'bonus_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'bonus_html5_req'=>'',
            'bonus_html5_type'=>'number',
            'bonus_unique'=>'',
            'bonus_unique_for_update'=>'',
            'bonus_scale'=>'2',
            
            'tax_req'=>'',
            'tax_title'=>'Tax',
            'tax_max'=>'15',
            'tax_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'tax_html5_req'=>'',
            'tax_html5_type'=>'number',
            'tax_unique'=>'',
            'tax_unique_for_update'=>'',
            'tax_scale'=>'2',
            
            'gross_salary_req'=>'*',
            'gross_salary_title'=>'Gross Salary',
            'gross_salary_max'=>'15',
            'gross_salary_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'gross_salary_html5_req'=>'required',
            'gross_salary_html5_type'=>'number',
            'gross_salary_unique'=>'',
            'gross_salary_unique_for_update'=>'',
            'gross_salary_scale'=>'2',
            
            'net_salary_req'=>'*',
            'net_salary_title'=>'Net Salary',
            'net_salary_max'=>'15',
            'net_salary_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'net_salary_html5_req'=>'required',
            'net_salary_html5_type'=>'number',
            'net_salary_unique'=>'',
            'net_salary_unique_for_update'=>'',
            'net_salary_scale'=>'2',
            
            'payment_status_req'=>'',
            'payment_status_title'=>'Payment Status',
            'payment_status_max'=>'',
            'payment_status_validateas'=>'nullable|in:pending,paid',
            'payment_status_html5_req'=>'',
            'payment_status_html5_type'=>'text',
            'payment_status_unique'=>'',
            'payment_status_unique_for_update'=>'',
            'payment_status_array'=>array('pending'=>'pending','paid'=>'paid',),
            
            'payment_date_req'=>'',
            'payment_date_title'=>'Payment Date',
            'payment_date_max'=>'',
            'payment_date_validateas'=>'nullable|date|date_format:Y-m-d',
            'payment_date_html5_req'=>'',
            'payment_date_html5_type'=>'text',
            'payment_date_unique'=>'',
            'payment_date_unique_for_update'=>'',
            
            
            'payslip_req'=>'',
            'payslip_title'=>'Payslip',
            'payslip_max'=>'255',
            'payslip_validateas'=>'max:255',
            'payslip_html5_req'=>'',
            'payslip_html5_type'=>'text',
            'payslip_unique'=>'',
            'payslip_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_payrolls', $dbs_payrolls);
    $dbs_role_has_permissions = array(
        
            'permission_id_req'=>'*',
            'permission_id_title'=>'Permission',
            'permission_id_max'=>'20',
            'permission_id_validateas'=>'required|integer|digits_between:1,20',
            'permission_id_html5_req'=>'required',
            'permission_id_html5_type'=>'number',
            'permission_id_unique'=>'',
            'permission_id_unique_for_update'=>'',
            
            
            'role_id_req'=>'*',
            'role_id_title'=>'Role',
            'role_id_max'=>'20',
            'role_id_validateas'=>'required|integer|digits_between:1,20',
            'role_id_html5_req'=>'required',
            'role_id_html5_type'=>'number',
            'role_id_unique'=>'',
            'role_id_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_role_has_permissions', $dbs_role_has_permissions);
    $dbs_roles = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'name_req'=>'*',
            'name_title'=>'Name',
            'name_max'=>'255',
            'name_validateas'=>'required|max:255',
            'name_html5_req'=>'required',
            'name_html5_type'=>'text',
            'name_unique'=>'|unique:roles,name,NULL,id,deleted_at,NULL',
            'name_unique_for_update'=>'|unique:roles,name,NULL_ID,id,deleted_at,NULL',
            
            
            'guard_name_req'=>'*',
            'guard_name_title'=>'Guard Name',
            'guard_name_max'=>'255',
            'guard_name_validateas'=>'required|max:255',
            'guard_name_html5_req'=>'required',
            'guard_name_html5_type'=>'text',
            'guard_name_unique'=>'',
            'guard_name_unique_for_update'=>'',
            
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_roles', $dbs_roles);
    $dbs_salary_structures = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'employee_id_req'=>'*',
            'employee_id_title'=>'Employee',
            'employee_id_max'=>'20',
            'employee_id_validateas'=>'required|exists:employees,id',
            'employee_id_html5_req'=>'required',
            'employee_id_html5_type'=>'text',
            'employee_id_unique'=>'',
            'employee_id_unique_for_update'=>'',
            
            
            'basic_salary_req'=>'*',
            'basic_salary_title'=>'Basic Salary',
            'basic_salary_max'=>'15',
            'basic_salary_validateas'=>'required|numeric|between:-9999999999999.99,9999999999999.99',
            'basic_salary_html5_req'=>'required',
            'basic_salary_html5_type'=>'number',
            'basic_salary_unique'=>'',
            'basic_salary_unique_for_update'=>'',
            'basic_salary_scale'=>'2',
            
            'house_allowance_req'=>'',
            'house_allowance_title'=>'House Allowance',
            'house_allowance_max'=>'15',
            'house_allowance_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'house_allowance_html5_req'=>'',
            'house_allowance_html5_type'=>'number',
            'house_allowance_unique'=>'',
            'house_allowance_unique_for_update'=>'',
            'house_allowance_scale'=>'2',
            
            'medical_allowance_req'=>'',
            'medical_allowance_title'=>'Medical Allowance',
            'medical_allowance_max'=>'15',
            'medical_allowance_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'medical_allowance_html5_req'=>'',
            'medical_allowance_html5_type'=>'number',
            'medical_allowance_unique'=>'',
            'medical_allowance_unique_for_update'=>'',
            'medical_allowance_scale'=>'2',
            
            'transport_allowance_req'=>'',
            'transport_allowance_title'=>'Transport Allowance',
            'transport_allowance_max'=>'15',
            'transport_allowance_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'transport_allowance_html5_req'=>'',
            'transport_allowance_html5_type'=>'number',
            'transport_allowance_unique'=>'',
            'transport_allowance_unique_for_update'=>'',
            'transport_allowance_scale'=>'2',
            
            'bonus_req'=>'',
            'bonus_title'=>'Bonus',
            'bonus_max'=>'15',
            'bonus_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'bonus_html5_req'=>'',
            'bonus_html5_type'=>'number',
            'bonus_unique'=>'',
            'bonus_unique_for_update'=>'',
            'bonus_scale'=>'2',
            
            'tax_req'=>'',
            'tax_title'=>'Tax',
            'tax_max'=>'15',
            'tax_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'tax_html5_req'=>'',
            'tax_html5_type'=>'number',
            'tax_unique'=>'',
            'tax_unique_for_update'=>'',
            'tax_scale'=>'2',
            
            'provident_fund_req'=>'',
            'provident_fund_title'=>'Provident Fund',
            'provident_fund_max'=>'15',
            'provident_fund_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'provident_fund_html5_req'=>'',
            'provident_fund_html5_type'=>'number',
            'provident_fund_unique'=>'',
            'provident_fund_unique_for_update'=>'',
            'provident_fund_scale'=>'2',
            
            'other_deductions_req'=>'',
            'other_deductions_title'=>'Other Deductions',
            'other_deductions_max'=>'15',
            'other_deductions_validateas'=>'nullable|numeric|between:-9999999999999.99,9999999999999.99',
            'other_deductions_html5_req'=>'',
            'other_deductions_html5_type'=>'number',
            'other_deductions_unique'=>'',
            'other_deductions_unique_for_update'=>'',
            'other_deductions_scale'=>'2',
            
            'effective_from_req'=>'*',
            'effective_from_title'=>'Effective From',
            'effective_from_max'=>'',
            'effective_from_validateas'=>'required|date|date_format:Y-m-d',
            'effective_from_html5_req'=>'required',
            'effective_from_html5_type'=>'text',
            'effective_from_unique'=>'',
            'effective_from_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_salary_structures', $dbs_salary_structures);
    $dbs_shifts = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'name_req'=>'*',
            'name_title'=>'Name',
            'name_max'=>'255',
            'name_validateas'=>'required|max:255',
            'name_html5_req'=>'required',
            'name_html5_type'=>'text',
            'name_unique'=>'|unique:shifts,name,NULL,id,deleted_at,NULL',
            'name_unique_for_update'=>'|unique:shifts,name,NULL_ID,id,deleted_at,NULL',
            
            
            'start_time_req'=>'*',
            'start_time_title'=>'Start Time',
            'start_time_max'=>'',
            'start_time_validateas'=>'required|regex:/^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$/',
            'start_time_html5_req'=>'required',
            'start_time_html5_type'=>'time',
            'start_time_unique'=>'',
            'start_time_unique_for_update'=>'',
            
            
            'end_time_req'=>'*',
            'end_time_title'=>'End Time',
            'end_time_max'=>'',
            'end_time_validateas'=>'required|regex:/^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$/',
            'end_time_html5_req'=>'required',
            'end_time_html5_type'=>'time',
            'end_time_unique'=>'',
            'end_time_unique_for_update'=>'',
            
            
            'late_after_minutes_req'=>'*',
            'late_after_minutes_title'=>'Late After Minutes',
            'late_after_minutes_max'=>'11',
            'late_after_minutes_validateas'=>'required|integer|digits_between:1,11',
            'late_after_minutes_html5_req'=>'required',
            'late_after_minutes_html5_type'=>'number',
            'late_after_minutes_unique'=>'',
            'late_after_minutes_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_shifts', $dbs_shifts);
    $dbs_site_settings = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'11',
            'id_validateas'=>'required|integer|digits_between:1,11',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'setting_type_req'=>'*',
            'setting_type_title'=>'Setting Type',
            'setting_type_max'=>'',
            'setting_type_validateas'=>'required|in:Text,Dropdown',
            'setting_type_html5_req'=>'required',
            'setting_type_html5_type'=>'text',
            'setting_type_unique'=>'',
            'setting_type_unique_for_update'=>'',
            'setting_type_array'=>array('Text'=>'Text','Dropdown'=>'Dropdown',),
            
            'setting_options_req'=>'',
            'setting_options_title'=>'Setting Options',
            'setting_options_max'=>'50',
            'setting_options_validateas'=>'max:50',
            'setting_options_html5_req'=>'',
            'setting_options_html5_type'=>'text',
            'setting_options_unique'=>'',
            'setting_options_unique_for_update'=>'',
            
            
            'setting_settings_req'=>'*',
            'setting_settings_title'=>'Setting Settings',
            'setting_settings_max'=>'64',
            'setting_settings_validateas'=>'required|max:64',
            'setting_settings_html5_req'=>'required',
            'setting_settings_html5_type'=>'text',
            'setting_settings_unique'=>'|unique:site_settings,setting_settings,NULL,id,deleted_at,NULL',
            'setting_settings_unique_for_update'=>'|unique:site_settings,setting_settings,NULL_ID,id,deleted_at,NULL',
            
            
            'setting_key_req'=>'*',
            'setting_key_title'=>'Setting Key',
            'setting_key_max'=>'64',
            'setting_key_validateas'=>'required|max:64',
            'setting_key_html5_req'=>'required',
            'setting_key_html5_type'=>'text',
            'setting_key_unique'=>'|unique:site_settings,setting_key,NULL,id,deleted_at,NULL',
            'setting_key_unique_for_update'=>'|unique:site_settings,setting_key,NULL_ID,id,deleted_at,NULL',
            
            
            'setting_value_req'=>'*',
            'setting_value_title'=>'Setting Value',
            'setting_value_max'=>'256',
            'setting_value_validateas'=>'required|max:256',
            'setting_value_html5_req'=>'required',
            'setting_value_html5_type'=>'text',
            'setting_value_unique'=>'',
            'setting_value_unique_for_update'=>'',
            
            
            'setting_scope_req'=>'*',
            'setting_scope_title'=>'Setting Scope',
            'setting_scope_max'=>'',
            'setting_scope_validateas'=>'required|in:Public,Private',
            'setting_scope_html5_req'=>'required',
            'setting_scope_html5_type'=>'text',
            'setting_scope_unique'=>'',
            'setting_scope_unique_for_update'=>'',
            'setting_scope_array'=>array('Public'=>'Public','Private'=>'Private',),
            
            'created_at_req'=>'*',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'required|max:',
            'created_at_html5_req'=>'required',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_site_settings', $dbs_site_settings);
    $dbs_skills = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'name_req'=>'*',
            'name_title'=>'Name',
            'name_max'=>'255',
            'name_validateas'=>'required|max:255',
            'name_html5_req'=>'required',
            'name_html5_type'=>'text',
            'name_unique'=>'|unique:skills,name,NULL,id,deleted_at,NULL',
            'name_unique_for_update'=>'|unique:skills,name,NULL_ID,id,deleted_at,NULL',
            
            
            'description_req'=>'',
            'description_title'=>'Description',
            'description_max'=>'1000',
            'description_validateas'=>'max:1000',
            'description_html5_req'=>'',
            'description_html5_type'=>'text',
            'description_unique'=>'',
            'description_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_skills', $dbs_skills);
    $dbs_users = array(
        
            'id_req'=>'*',
            'id_title'=>'Id',
            'id_max'=>'20',
            'id_validateas'=>'required|integer|digits_between:1,20',
            'id_html5_req'=>'required',
            'id_html5_type'=>'number',
            'id_unique'=>'',
            'id_unique_for_update'=>'',
            
            
            'name_req'=>'*',
            'name_title'=>'Name',
            'name_max'=>'32',
            'name_validateas'=>'required|max:32',
            'name_html5_req'=>'required',
            'name_html5_type'=>'text',
            'name_unique'=>'',
            'name_unique_for_update'=>'',
            
            
            'email_req'=>'*',
            'email_title'=>'Email',
            'email_max'=>'64',
            'email_validateas'=>'required|email|max:64',
            'email_html5_req'=>'required',
            'email_html5_type'=>'email',
            'email_unique'=>'|unique:users,email,NULL,id,deleted_at,NULL',
            'email_unique_for_update'=>'|unique:users,email,NULL_ID,id,deleted_at,NULL',
            
            
            'email_verified_at_req'=>'',
            'email_verified_at_title'=>'Email Verified At',
            'email_verified_at_max'=>'',
            'email_verified_at_validateas'=>'nullable|email|max:',
            'email_verified_at_html5_req'=>'',
            'email_verified_at_html5_type'=>'email',
            'email_verified_at_unique'=>'',
            'email_verified_at_unique_for_update'=>'',
            
            
            'password_req'=>'*',
            'password_title'=>'Password',
            'password_max'=>'64',
            'password_validateas'=>'required|min:8|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&]).+$/',
            'password_html5_req'=>'required',
            'password_html5_type'=>'password',
            'password_unique'=>'',
            'password_unique_for_update'=>'',
            
            
            'picture_req'=>'',
            'picture_title'=>'Picture',
            'picture_max'=>'100',
            'picture_validateas'=>'nullable|image64',
            'picture_html5_req'=>'',
            'picture_html5_type'=>'file',
            'picture_unique'=>'',
            'picture_unique_for_update'=>'',
            
            
            'status_req'=>'*',
            'status_title'=>'Status',
            'status_max'=>'',
            'status_validateas'=>'required|in:Active,Inactive',
            'status_html5_req'=>'required',
            'status_html5_type'=>'text',
            'status_unique'=>'',
            'status_unique_for_update'=>'',
            'status_array'=>array('Active'=>'Active','Inactive'=>'Inactive',),
            
            'remember_token_req'=>'',
            'remember_token_title'=>'Remember Token',
            'remember_token_max'=>'100',
            'remember_token_validateas'=>'max:100',
            'remember_token_html5_req'=>'',
            'remember_token_html5_type'=>'text',
            'remember_token_unique'=>'',
            'remember_token_unique_for_update'=>'',
            
            
            'api_token_req'=>'',
            'api_token_title'=>'Api Token',
            'api_token_max'=>'80',
            'api_token_validateas'=>'max:80',
            'api_token_html5_req'=>'',
            'api_token_html5_type'=>'text',
            'api_token_unique'=>'',
            'api_token_unique_for_update'=>'',
            
            
            'created_at_req'=>'',
            'created_at_title'=>'Created At',
            'created_at_max'=>'',
            'created_at_validateas'=>'max:',
            'created_at_html5_req'=>'',
            'created_at_html5_type'=>'text',
            'created_at_unique'=>'',
            'created_at_unique_for_update'=>'',
            
            
            'updated_at_req'=>'',
            'updated_at_title'=>'Updated At',
            'updated_at_max'=>'',
            'updated_at_validateas'=>'max:',
            'updated_at_html5_req'=>'',
            'updated_at_html5_type'=>'text',
            'updated_at_unique'=>'',
            'updated_at_unique_for_update'=>'',
            
            
            'deleted_at_req'=>'',
            'deleted_at_title'=>'Deleted At',
            'deleted_at_max'=>'',
            'deleted_at_validateas'=>'max:',
            'deleted_at_html5_req'=>'',
            'deleted_at_html5_type'=>'text',
            'deleted_at_unique'=>'',
            'deleted_at_unique_for_update'=>'',
            
            
        );
        // Pass the arrays to all views
        View::share('dbs_users', $dbs_users);
    $uniqueArray = array('employee_id','email','name','name','employee_code','email','cnic','name','employee_id','name','name','setting_settings','setting_key','name','email');View::share('uniqueArray', $uniqueArray);
    }
}