public function doImportOFX(Request $request)
{
$file = File::get($request->file('ofx_file'));
try {
$data = $this->bankAccountService->parseOFX($file);
} catch (\Exception $e) {
Session::flash('error', trans('texts.ofx_parse_failed'));
Utils::logError($e);
return view('accounts.import_ofx');
}
$data = ['banks' => null, 'bankAccount' => null, 'transactions' => json_encode([$data])];
return View::make('accounts.bank_account', $data);
}