/**
  * Remove the specified resource from storage.
  *
  * @param Client $client
  * @return Response
  * @throws \Exception
  * @internal param int $id
  */
 public function destroy(Client $client)
 {
     $client->addresses()->delete();
     $client->bankDetails()->delete();
     $propertyd = $client->property()->get();
     foreach ($propertyd as $item) {
         $item->addresses()->delete();
     }
     $client->property()->delete();
     $client->delete();
     Session::flash('flash_message', 'Owner successfully deleted!');
     return redirect()->action('OwnerController@index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy(Client $client)
 {
     $client->addresses()->delete();
     $client->delete();
     Session::flash('flash_message', 'Client successfully deleted!');
     return redirect()->action('ClientController@index');
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit(Client $client)
 {
     $addressId = $client->addresses()->first()->id;
     $address = Address::findOrFail($addressId);
     return view('general.editAddress', compact('address', 'client'));
 }