Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function form(Request $request) {
- $view['status'] = ['1'=>'Active', '0' => 'Inactive', '2'=>'Blacklist'];
- if ($request->has('id')) {
- $id = $request->input('id');
- $data = Consultant::find($id);
- if (!empty($data)) {
- $view['data'] = $data;
- }
- }
- $view['page_title'] = "MASTER DATA CONSULTANT";
- return view('Master.Consultant.form', $view);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement