/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $cheque = Cheque::find($id);
     $bancos = Banco::all()->lists('nome', 'id');
     $clientes = Cliente::orderBy('fantasia')->get();
     $fornecedores = Fornecedor::orderBy('fantasia')->get();
     if ($cheque->lancamento->status != '2' || $cheque->lancamento->status != '3') {
         return view('cheques.edit', compact('cheque', 'bancos', 'clientes', 'fornecedores'));
     }
     flash('Cheque já está pago');
     return redirect('/cheques');
 }