public function edit($id)
 {
     $transaction = Transaction::find($id);
     $customer = Customer::where('id', '=', $transaction->customer_id)->firstOrFail();
     $status = Status::lists('name', 'id');
     return view('transactions.edit', compact(['transaction', 'customer', 'status']));
 }