function lookHistory()
 {
     if (isset($_SESSION['authorization'])) {
         $client_d = ClientDetail::where('client_id', Input::get('id'))->orderBy('id', 'DESC')->get();
         $client = Client::find(Input::get('id'));
         $name = $client->name . ' ' . $client->last_name;
         return view('clients.historyAppointment', ['client_d' => $client_d, 'name' => $name]);
     } else {
         return Redirect::to('./sayfa-bulunamadi');
     }
 }
 public function update($id, ClientDetailRequest $request)
 {
     $clientdetail = ClientDetail::findOrFail($id);
     $clientdetail->update($request->all());
     return redirect('manage/clientdetail');
 }