/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $th01 = new th01();
     $dethuts = $th01->getDetailHutang($id);
     foreach ($dethuts as $dethut) {
         $th02 = th02::find($dethut->idph);
         $th02->delete();
     }
     $th01 = th01::find($id);
     $th01->delete();
     Session::flash('th01_success', 'Data Telah DiHapus!');
     return Redirect::to('inputdata/hutang');
 }