app/Http/Controllers/Admin/salaryController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $salary = Salary::all();
        $staff = Staff::all();
        $title = Title::all();
        $bankaccount = BankAccount::all();
        return view('Admin.Payroll.Salary.add',compact('salary','staff','title','bankaccount'));
    }
public function create ( ) { $ salary = Salary :: all ( ) ; $ staff = Staff :: all ( ) ; $ title = Title :: all ( ) ; $ bankaccount = BankAccount :: all ( ) ; return view ( 'Admin.Payroll.Salary.add' , compact ( 'salary' , 'staff' , 'title' , 'bankaccount' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .