/**
  * @param BillRepositoryInterface $repository
  * @param Bill                    $bill
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy(BillRepositoryInterface $repository, Bill $bill)
 {
     $repository->destroy($bill);
     Session::flash('success', 'The bill was deleted.');
     Preferences::mark();
     return redirect(Session::get('bills.delete.url'));
 }
 /**
  * @param BillRepositoryInterface $repository
  * @param Bill                    $bill
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy(BillRepositoryInterface $repository, Bill $bill)
 {
     $name = $bill->name;
     $repository->destroy($bill);
     Session::flash('success', strval(trans('firefly.deleted_bill', ['name' => $name])));
     Preferences::mark();
     return redirect(session('bills.delete.url'));
 }