app/Http/Controllers/PayrollController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $paye = DB::table('settings')->where('id', '1')->value('paye');
        $paye = floatval($paye);
        $nassa = DB::table('settings')->where('id', '1')->value('nassa');
        $nassa = floatval($nassa);
        $aids_levy = DB::table('settings')->where('id', '1')->value('aids_levy');
        $aids_levy = floatval($aids_levy);
        return view('admin.payroll.salary_manage')
            ->with('employees', Employee::all())
            ->with('employee_types', EmployeeType::all())
            ->with('paye', $paye)
            ->with('nassa', $nassa)
            ->with('aids_levy', $aids_levy);
    }
public function index ( ) { $ paye = DB :: table ( 'settings' ) -> where ( 'id' , '1' ) -> value ( 'paye' ) ; $ paye = floatval ( $ paye ) ; $ nassa = DB :: table ( 'settings' ) -> where ( 'id' , '1' ) -> value ( 'nassa' ) ; $ nassa = floatval ( $ nassa ) ; $ aids_levy = DB :: table ( 'settings' ) -> where ( 'id' , '1' ) -> value ( 'aids_levy' ) ; $ aids_levy = floatval ( $ aids_levy ) ; return view ( 'admin.payroll.salary_manage' ) -> with ( 'employees' , Employee :: all ( ) ) -> with ( 'employee_types' , EmployeeType :: all ( ) ) -> with ( 'paye' , $ paye ) -> with ( 'nassa' , $ nassa ) -> with ( 'aids_levy' , $ aids_levy ) ; }
Display a listing of the resource.
Display a listing of the resource .