예제 #1
0
 public function getClient($id)
 {
     $clients = Client::select('var_name', 'var_address', 'var_telephone', 'var_email', 'var_mobile')->where('id', '=', $id)->first();
     if (\Request::ajax()) {
         return \Response::json(['mobile' => $clients->var_mobile, 'telephone' => $clients->var_telephone, 'mail' => $clients->var_email, 'address' => $clients->var_address]);
     }
 }
예제 #2
0
 public function create()
 {
     $client = Client::select('id', 'var_name')->get();
     $reviceuser = User::select('id', 'var_username', 'var_userlastname')->get();
     $tecniuser = User::select('id', 'var_username', 'var_userlastname')->where('type', 'Tecnico')->get();
     $flaw = Flawcategory::select('id', 'var_category')->get();
     return view('st.create', compact(['client', 'reviceuser', 'tecniuser', 'flaw']));
 }